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

What is the reason for the current CORS policy, and can it be changed? #92

Open
slack-lean opened this issue Jul 23, 2021 · 0 comments
Open

Comments

@slack-lean
Copy link

Currently, the CORS policy for the 4chan API (a.4cdn.org) only allows requests from boards.4chan.org and boards.4channel.org (at least according to the docs).

This policy can be bypassed anyway by using a CORS proxy or by manually setting the Origin header in a request.

The exception is that requests from a browser environment will be blocked because browsers disallow setting the Origin header for security reasons.

Unless I am misunderstanding something, I see no security risk in allowing all origins, because this API is explicitly read-only.

Is there any reason to still have this policy?

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

1 participant