louketo / louketo-proxy

A OpenID / Proxy service
Apache License 2.0
950 stars 343 forks source link

[error] the cookie is set to secure but your redirection url is non-tls #690

Open antonstanov opened 3 years ago

antonstanov commented 3 years ago

Hello! I run gatekeeper for my angular app with this config:

docker run -it --rm quay.io/louketo/louketo-proxy \
  --discovery-url https://smthg-site.com/iam/auth/realms/dev \
  --client-id app-test \
  --client-secret 12345678-0d51-4f16-912f-7431a40a0015 \
  --listen 0.0.0.0:3000 \
  --redirection-url http://localhost:3000 \
  --upstream-url http://localhost:4200 \
  --preserve-host true \
  --enable-default-deny true \
  --secure-cookie false \
  --enable-encrypted-token true \
  --enable-refresh-tokens true \
  --encryption-key 12345666666666765dg66666666sfd23 \
  --enable-logging true \
  --enable-json-logging true \
  --resources = "uri=/*|white-listed=true" \
  --resources = "uri=/public/*|white-listed=true"

I get the error in the terminal: "[error] the cookie is set to secure but your redirection url is non-tls". Deleting or changing the value of the secure-cookie field does not work. Prop discovery-url must be prefixed with https required

System: macOS Catalina

help plz