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

Using custom --http-port during local dev breaks dashboard (Content Security Policy Error) #2563

Open
edgarrroussille opened this issue Feb 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@edgarrroussille
Copy link

Describe the bug
When running nhost up with --http-port param (444 in my case), the local dashboard https://local.dashboard.nhost.run:444/local/local gets stuck on the "Error Connecting" screen.

All other services works fine :)

To Reproduce

  1. Run nhost up and connect to https://local.dashboard.nhost.run
  2. It works 👍
  3. Run nhost down && nhost up --http-port 444 and connect to https://local.dashboard.nhost.run:444
  4. See error

Expected behavior
Using --http-port along with nhost up should not break local nhost dashboard

Screenshots
nhost_local_CSP_bug

Using

  • nhost/auth @0.24.1
  • nhost/cli @1.14.0

Additional context
Console says:

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' *.nhost.run ws://*.nhost.run nhost.run ws://nhost.run discord.com".
Refused to connect to 'https://local.auth.nhost.run:444/v1/healthz' because it violates the following Content Security Policy directive: "connect-src 'self' *.nhost.run ws://*.nhost.run nhost.run ws://nhost.run discord.com".
@edgarrroussille edgarrroussille added the bug Something isn't working label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant