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

API: Two 'access-control-allow-origin's collide #684

Open
PesiTheWizard opened this issue Jan 12, 2024 · 1 comment
Open

API: Two 'access-control-allow-origin's collide #684

PesiTheWizard opened this issue Jan 12, 2024 · 1 comment

Comments

@PesiTheWizard
Copy link

Most API responses have two different access-control-allow-origin headers, meaning browsers will refuse to make use of fetched data as the header is impossible to match.

One is access-control-allow-origin: *.
Three lines later we get access-control-allow-origin: playstrategy.org.

Comparing this to lichess itself and its other sister sites suggests the second one is added in error.

@JamesHeppell
Copy link
Contributor

Thanks for the comment, we have this bug logged against an issue. Unfortunately its low priority atm but hopefully we will address it in the coming months.

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