Skip to content

Add environment variable to set permissive CORS policy#218

Merged
josecelano merged 1 commit intotorrust:developfrom
josecelano:issue-214-env-var-to-set-permissive-cors-police
Jun 26, 2023
Merged

Add environment variable to set permissive CORS policy#218
josecelano merged 1 commit intotorrust:developfrom
josecelano:issue-214-env-var-to-set-permissive-cors-police

Conversation

@josecelano
Copy link
Copy Markdown
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