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 policy problem #496

Open
hormiai76 opened this issue Jun 3, 2019 · 3 comments
Open

CORS policy problem #496

hormiai76 opened this issue Jun 3, 2019 · 3 comments

Comments

@hormiai76
Copy link
Contributor

hormiai76 commented Jun 3, 2019

Hi,
My EXI doesn't work. The browser console return to me the following messages:

index.html#/autoprocintegration/datacollection/15560/autoprocIntegration/17682/main:1 Access to XMLHttpRequest at 'https://ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/cc2' from origin 'https://exi-test.maxiv.lu.se' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/rfactor:1 Failed to load resource: the server responded with a status of 404 (Not Found)
ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/rfactor:1 Failed to load resource: the server responded with a status of 404 (Not Found)
index.html#/autoprocintegration/datacollection/15560/autoprocIntegration/17682/main:1 Access to XMLHttpRequest at 'https://ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/rfactor' from origin 'https://exi-test.maxiv.lu.se' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/completeness:1 Failed to load resource: the server responded with a status of 404 (Not Found)
ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/completeness:1 Failed to load resource: the server responded with a status of 404 (Not Found)
index.html#/autoprocintegration/datacollection/15560/autoprocIntegration/17682/main:1 Access to XMLHttpRequest at 'https://ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/completeness' from origin 'https://exi-test.maxiv.lu.se' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/isigma:1 Failed to load resource: the server responded with a status of 404 (Not Found)
ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/isigma:1 Failed to load resource: the server responded with a status of 404 (Not Found)
index.html#/autoprocintegration/datacollection/15560/autoprocIntegration/17682/main:1 Access to XMLHttpRequest at 'https://ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/isigma' from origin 'https://exi-test.maxiv.lu.se' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.`

It's a bug or I need to setup my server in a different way in order to avoid CORS problems?
Regards,
Alberto Nardella

@antolinos
Copy link
Collaborator

Hi Alberta,

Humm, it works here, did you check the logs of ISPyB?

@antolinos
Copy link
Collaborator

Have you tried this out of EXI (with a valid token)?

ispyb.maxiv.lu.se/ispyb/ispyb-ws/rest/52d20b806aabd5a3d2fba810370eacd4a667ab77/proposal/MX20180338/mx/autoprocintegration/17682/fastdp/completeness

@hormiai76
Copy link
Contributor Author

hormiai76 commented Jun 27, 2019 via email

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

2 participants