-
Notifications
You must be signed in to change notification settings - Fork 46
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 #25
Comments
Hi @znikasz sorry for the very late response. I didn't see this. Let's discuss in more detail. Happy to consider all requests |
Hi, thank you for the response. We have simple website in our lab that we use for describing a variant. It uses REST for gathering data from several places, we would like to include VariantValidator. The query is done by the browser, it looks like:
However, web browsers cannot consume the answer due to the CORS restrictions. It is well described here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin . The solution would be to attach a header Response for:
should then be:
I have no experience in Python, so I don't know how to implement this, unfortunately. However, you can for sure add such header in Apache or any other reverse proxy, if you use one. |
Can this be fixed? The BOOSTB4 project needs to use the API to validate patient variant submissions to their database. At present, calls to the API form their system are returning errors such as: ‘Access to XMLHttpRequest at 'https://rest.variantvalidator.org/VariantValidator/variantvalidator/GRCh37/NM_000088.3:c.589G%3ET/all?content-type=application%2Fjson' from origin 'https://www.medscinet.com' 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.’ |
This is a question for IT services not here. Its an IT issue who is on blocked policies. Tell the BOOSTB4 team, however, to use the dev version on https://www35.lamp.le.ac.uk/ because it is where the most up-to-date versions are found. Let me know if that works |
I will raise the issue with IT Services. Which LAMP is hosting https://rest.variantvalidator.org/ ? I'll get back to you on whether the dev version works for the BOOSTB4 team. |
BOSTB4 are better using dev for now to avoid issues in the furure |
Thank you for making https://rest.variantvalidator.org/ public. Would it be possible to set Cross-Origin Resource Sharing so that VV Rest is consumable by other websites?
Thanks
The text was updated successfully, but these errors were encountered: