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

[starter-web-netty] CORS_ALLOWED_ORIGIN config property #219

Merged

Conversation

eahrold
Copy link
Contributor

@eahrold eahrold commented May 8, 2020

This helps with developing the web ui against the starter.

@@ -10,7 +10,7 @@ micronaut:
configurations:
web:
allowedOrigins:
- ^http(|s):\/\/micronaut\.io$
- ${CORS_ALLOWED_ORIGIN:^http(|s):\/\/micronaut\.io$}
Copy link
Contributor

@ilopmar ilopmar May 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to escape the default value with backticks becase there is a colon:
I think it should be

${CORS_ALLOWED_ORIGIN:`^http(|s):\/\/micronaut\.io$`}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @ilopmar, thanks. Addressed b3971f0

@graemerocher graemerocher merged commit c29208d into micronaut-projects:master May 11, 2020
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.

3 participants