Skip to content

Setting same-site-cookie property from environment/.env file #23963

Answered by radcortez
luca-bassoricci asked this question in Q&A
Discussion options

You must be logged in to vote

The env property format is unable to fully represent quarkus.http.same-site-cookie.Mercurio_cookie.value, because we only have available a subset of the possible characters. So, for instance, if you pick QUARKUS_HTTP_SAME_SITE_COOKIE_MERCURIO_COOKIE_VALUE, it can represent, quarkus.http.same.site.cookie.mercurio.cookie.value or other combinations. In fact, you don't how if the env variable _ should map to a . a - or a _.

In that situation, you need to include the original property name in the dotted format in another config source (like application.properties). This will allow Quarkus based on an already existent property that QUARKUS_HTTP_SAME_SITE_COOKIE_MERCURIO_COOKIE_VALUE is actuall…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@gsmet
Comment options

@radcortez
Comment options

@luca-bassoricci
Comment options

@radcortez
Comment options

Answer selected by luca-bassoricci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants