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

Allow CORS #65

Open
michaelheider opened this issue Dec 4, 2024 · 0 comments
Open

Allow CORS #65

michaelheider opened this issue Dec 4, 2024 · 0 comments

Comments

@michaelheider
Copy link

michaelheider commented Dec 4, 2024

Would be cool if there was a setting to allow CORS.

Either an option to not block OPTION requests, or better: CORS headers directly from within the plugin.

The issue I'm facing:
I want the frontend to be accessible, as it doubles as homepage. But the backend should be GeoBlocked. For UX, the frontend makes a test request to the backend (which should fail with the HTTP status code configured in GeoBlock), however, due to how the backend is set up, this requires CORS (for the successful requests). The preflight/OPTION request always fails as it is blocked, leaving the frontend in the dark as to what exactly is happening.

Workaround:
Reconfigure backend to allow a test request without CORS-enforcing headers.

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