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

Add environment variable to set permissive CORS policy #218

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Add environment variable to set permissive CORS policy #218

merged 1 commit into from
Jun 26, 2023

Conversation

josecelano
Copy link
Member

Running the backend with:

TORRUST_IDX_BACK_CORS_PERMISSIVE=true cargo run

will make the CORS policy to be permissive, which means you can use a different port for the API and serving the frontend app. It's intented for development purposes.

Running the backend with:

```
TORRUST_IDX_BACK_CORS_PERMISSIVE=true cargo run
```

will make the CORS policy to be permissive, which means you can use a
different port for the API and serving the frontend app. It's intented
for development purposes.
@josecelano josecelano linked an issue Jun 26, 2023 that may be closed by this pull request
@josecelano josecelano merged commit 5568bd0 into torrust:develop Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add a new env var to make the CORS policy permissive
1 participant