Skip to content

Commit

Permalink
Merge pull request #129 from adobe/main
Browse files Browse the repository at this point in the history
chore: sync prod to main
  • Loading branch information
comanV authored Jun 28, 2024
2 parents bb90fb8 + f66efa1 commit 177890f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@adobe/aem-headless-client-js": "^3.1.0",
"@adobe/aem-headless-client-nodejs": "^1.1.0",
"@adobe/universal-editor-cors": "2.3.3",
"@adobe/universal-editor-cors": "2.3.5",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/fetchData.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const {REACT_APP_DEFAULT_AUTHOR_HOST, REACT_APP_DEFAULT_PUBLISH_HOST} = process.

export const fetchData = async (path) => {
const url = `${getAuthorHost()}/${path.split(":/")[1]}.model.json`;
const data = await fetch(url, {credentials: "include"});
const data = await fetch(url, { headers: {"X-Aem-Affinity-Type": "api"}, credentials: "include"});
const json = await data.json();
return json;
};
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.2.0.tgz#e1a84fca468f4b337816fcb7f0964beb620ba855"
integrity sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==

"@adobe/[email protected].3":
version "2.3.3"
resolved "https://registry.yarnpkg.com/@adobe/universal-editor-cors/-/universal-editor-cors-2.3.3.tgz#be9bfb4883d4ae16307b69d69cd258a0ff0d9d4f"
integrity sha512-3jg5p+YE5KmWRbcvf5ugZOtEovITdHpQ/v4qM3UwzxOHBDqoTy1GCnG8Gc9/qJTfxBdZhmtZPDigedFn6PCScQ==
"@adobe/[email protected].5":
version "2.3.5"
resolved "https://registry.yarnpkg.com/@adobe/universal-editor-cors/-/universal-editor-cors-2.3.5.tgz#c4f23315e307213ccef02c62644226dd856fd593"
integrity sha512-W7Z3oQuyOCFgmCbDa0bWA3VwKPC0Cs73MDsMFN9tFyw7kWBP0umW7yKsaZb3cPfzffJjYTRy4yHIKw8iCcYnPg==

"@ampproject/remapping@^2.2.0":
version "2.2.1"
Expand Down

1 comment on commit 177890f

@comanV
Copy link
Collaborator Author

@comanV comanV commented on 177890f Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.