Skip to content

Commit

Permalink
fix(canary): add cross origin to upload files on ckeditor autofire
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos authored Jun 25, 2024
1 parent 33f6340 commit 5f0007b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ const AutofireForm = ({ widget, updateCache }: Props): React.ReactElement => {
config={{
simpleUpload: {
uploadUrl: process.env.REACT_APP_UPLOADS_URL,
withCredentials: true,
withCredentials: false,
headers: {
"X-CSRF-TOKEN": "CSRF-Token",
Authorization: "Bearer <JSON Web Token>"
"Access-Control-Allow-Origin": "*",
}
}
}}
Expand All @@ -124,4 +123,4 @@ const AutofireForm = ({ widget, updateCache }: Props): React.ReactElement => {
);
};

export default AutofireForm;
export default AutofireForm;

0 comments on commit 5f0007b

Please sign in to comment.