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 from all origins #5979

Open
1 task done
siunus opened this issue Nov 9, 2024 · 1 comment
Open
1 task done

Allow CORS from all origins #5979

siunus opened this issue Nov 9, 2024 · 1 comment
Assignees
Labels
🐛bug Something isn't working

Comments

@siunus
Copy link

siunus commented Nov 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I am trying to allow CORS from all origins. I added CORS_ALLOWED_ORIGINS=* to the .env file, but the server fails to start when this variable is set.
Is there any way to allow CORS from all origins in this setup?

Steps to reproduce

  1. Add CORS_ALLOWED_ORIGINS=* to the .env file.
  2. Start the server.
  3. Observe that the server failed to start, likely due to an issue with the CORS configuration.

Environment

Production

Browser

Google Chrome

Variant

Self-hosted

Version

v0.23.1

@siunus siunus added the 🐛bug Something isn't working label Nov 9, 2024
@pushya22 pushya22 assigned akshat5302 and unassigned vihar and pushya22 Nov 11, 2024
@akshat5302
Copy link
Collaborator

Hey @siunus, please leave the CORS_ALLOWED_ORIGINS blank instead of using * to allow all origins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants