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

Fix for pgatlas.com CORS issue for GWAS #802

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Conversation

haideriqbal
Copy link
Collaborator

@haideriqbal haideriqbal commented Nov 14, 2024

This solves: #801

We already allow requests from any origin, so technically, pgatlas.com shouldn't have an issue with CORS but we use * as allowed origin with credentials set as true so this might result in error on the browsers because of security issue. Hence, the reason pgatlas.com facing cors error. Further reading:

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin

Have tested it locally with different Origin domains using curl and seems to be working fine.

@haideriqbal haideriqbal merged commit efa0c68 into dev Nov 26, 2024
1 check passed
@haideriqbal haideriqbal deleted the fix-gwas-cors-issue branch November 26, 2024 12:17
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

Successfully merging this pull request may close these issues.

2 participants