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: apply CORS restrictions #4168

Merged
merged 5 commits into from
Oct 15, 2024
Merged

fix: apply CORS restrictions #4168

merged 5 commits into from
Oct 15, 2024

Conversation

1zun4
Copy link
Member

@1zun4 1zun4 commented Oct 14, 2024

Restrict CORS to allow only localhost and 127.0.0.1 for development purposes.

CORS is not strictly required for our use case, as the REST API, WebSocket, and Static File Server are all hosted on the same host and port. However, to support development workflows—such as working on themes—we allow access to the Client REST API from localhost or 127.0.0.1.

This change restricts access from third-party websites, ensuring that only local development environments can make cross-origin requests. Note that this does not affect the External Client Menu feature, as long as the host URL is accessed directly.

@1zun4 1zun4 added this to the 0.16.0 milestone Oct 14, 2024
@1zun4 1zun4 merged commit a8d0d61 into nextgen Oct 15, 2024
2 checks passed
@1zun4 1zun4 deleted the fix/cors_origin branch October 15, 2024 06:47
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.

1 participant