Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS issue when uploading a file for which the name needs to be changed #60

Open
ntraut opened this issue Mar 25, 2021 · 1 comment
Open

Comments

@ntraut
Copy link
Member

ntraut commented Mar 25, 2021

It is an issue which only happens when the Parse API is not on the same host as mavoix-panel. When we try to upload an image for which the name has special characters so it has to be changed (Parse only allows alpha-numeric characters, dash, underscore and period), the upload fails with the error:

Access to XMLHttpRequest at 'https://ghfc17.hosting.pasteur.fr/parse/files/test_with-random_name%20_mod_.png' from origin 'https://mavoix.connect-project.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

When the file has only valid characters we do not have this problem.
I'm not sure if it is a configuration which is missing somewhere or an issue in Parse. I tried to update Parse to its newest version but the error is still there.

@ntraut
Copy link
Member Author

ntraut commented Jun 12, 2021

Now that we no longer use the ghfc17 address but only the https://mavoix.connect-project.io address, this problem may be no longer an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant