-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Setting quarkus.http.cors.origins in application.yml #12480
Comments
@rinmalavi should it be just |
Well it works with |
@rinmalavi Oh I see what is the probllem, May be we should have |
You need to do: quarkus:
http:
cors:
~: true See https://quarkus.io/guides/config#configuration-key-conflicts for more details. Closing now |
@gastaldi super :-) |
If this was documented, it's not anymore |
Looks like it was moved to https://quarkus.io/guides/config-reference#configuration-key-conflicts |
This is quite a frustrating "solution" as for almost all applications that accept YAML configuration, you can simply generate JSON (as a strict and easily canonicalized subset of YAML, to avoid most of YAML's nightmarish complexity). However, If only it was It feels to me like if YAML support is supposed to be a first-class feature, it would be better to use strictly hierarchical keys so that no special hacks are required. (The (Raised as issue #34292) |
When setting properties
I would expect "quarkus.http.cors.origins" to be set to "*"
However
Steps to reproduce the behavior:
set in
application.yaml
(usequarkus-config-yaml
)quarkus:
http:
cors: true
"cors.origins": '*'
watch for output in application logs
quarkus:1.8.1
you can however set
quarkus.http.cors.origins
in yml.The text was updated successfully, but these errors were encountered: