swagger-api/swagger-ui

WITH_CREDENTIALS env variable in DOCKER doesn't work

Open

#6.355 geöffnet am 1. Sept. 2020

Auf GitHub ansehen
 (3 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)JavaScript (8.801 Forks)batch import
Hacktoberfestcat: dockertype: question

Repository-Metriken

Stars
 (25.447 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20h 34m) (14 gemergte PRs in 30 T)

Beschreibung

Q&A (please complete the following information)

  • OS: using your latest Docker image
  • Browser: Firefox
  • Version: 79.0 (64-bit)
  • Method of installation: Docker
  • Swagger-UI version: latest
  • Swagger/OpenAPI version: OpenAPI 3.0

Content & configuration

Nothing configured. Using OOB-Docker Image

Swagger/OpenAPI definition:

# your YAML here

It's not an issue with the OpanAPI yaml

Swagger-UI configuration options:

SwaggerUI({
  // your config options here
})

Nonme. Using OOB-Docker Image

?yourQueryStringConfig

When using /?withCredentials=true#, setting cookies works. When NOT using it but relying on environemnt variable WITH_CREDENTIALS: "true" it doesn't work. Cookies not set.

Screenshots

With URL parameter:

Without, also showing the env:

How can we help?

Maybe tell me how to activate "withCredentials" so that I do not have to give it in URL.

Contributor Guide