Skip to content

Calendar API needs Access-Control-Allow-Origin #1866

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

Open
PesiTheWizard opened this issue May 22, 2025 · 1 comment
Open

Calendar API needs Access-Control-Allow-Origin #1866

PesiTheWizard opened this issue May 22, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@PesiTheWizard
Copy link

Trying to fetch https://www.pychess.org/api/calendar with JS leads to not being able to use the result due to the lack of an Access-Control-Allow-Origin header in the response. This is despite the fetch returning 200 OK and the returned data being visible in the network monitor.

The same is true of https://www.pychess.org/api/games.

@gbtami
Copy link
Owner

gbtami commented May 22, 2025

Yes, we should use https://github.com/aio-libs/aiohttp-cors instead of our custom on_prepare() I think.

@gbtami gbtami added enhancement New feature or request ODHack14 labels May 22, 2025
@gbtami gbtami removed the ODHack14 label Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants