Skip to content
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

KRATOS_BROWSER_URL not effective on webauthn script src #226

Open
5 of 6 tasks
dbtek opened this issue Dec 3, 2022 · 1 comment
Open
5 of 6 tasks

KRATOS_BROWSER_URL not effective on webauthn script src #226

dbtek opened this issue Dec 3, 2022 · 1 comment
Labels
bug Something is not working.

Comments

@dbtek
Copy link

dbtek commented Dec 3, 2022

Preflight checklist

Describe the bug

Script src seems to use 127.0.0.1 origin to fallback.

image

Reproducing the bug

  1. Run Kratos with webauthn enabled.
  2. Run self-service with given docker-compose config (Kratos config stripped)
  3. Login and navigate to account settings.

Relevant log output

No response

Relevant configuration

# docker-compose.yml
version: '3.7'
services:
  selfservice:
    image: oryd/kratos-selfservice-ui-node
    environment:
    - KRATOS_PUBLIC_URL=http://kratos:4433/
    - KRATOS_BROWSER_URL=http://127.0.0.1:8001/authn/
    - BASE_PATH=/auth
    - PORT=4455
    - SECURITY_MODE=
    networks:
    - intranet
    restart: on-failure
    ports:
     - "4455:4455"

Version

0.11.0

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Docker Compose

Additional Context

I would happily drop a PR if guided, since I couldn't be sure where this issue fixed.
I'm sorry if I missed or did something wrong.

Thanks!

@dbtek dbtek added the bug Something is not working. label Dec 3, 2022
@aeneasr
Copy link
Member

aeneasr commented Dec 5, 2022

Looks like your kratos public url is not configured correctly, it is http://localhost:4433/ (default) but should be http://127.0.0.1:8001/authn/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants