Allow cookies for cross domain requests (CORS) #1575
barryels
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks for the findings and sharing! Will check where to put this in the documentation once back on April 22nd. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure if this is explicitly documented anywhere, I couldn't find anything, but found references in the source code and in a few PRs.
In order to allow cookies (and other auth mechanisms?) to be passed to a microcks-hosted REST API in a cross domain scenario, you need to set the
CORS_REST_ALLOW_CREDENTIALS
totrue
version: "3.8" services: microcks: image: quay.io/microcks/microcks-uber:latest-native ports: - "8080:8080" environment: + - CORS_REST_ALLOW_CREDENTIALS=true
docker run -p 8080:8080 \ + -e CORS_REST_ALLOW_CREDENTIALS=true \ quay.io/microcks/microcks-uber:latest-native
Beta Was this translation helpful? Give feedback.
All reactions