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

[BUG] CSP error on terms.html #160

Open
mdavids opened this issue Feb 3, 2023 · 2 comments
Open

[BUG] CSP error on terms.html #160

mdavids opened this issue Feb 3, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mdavids
Copy link

mdavids commented Feb 3, 2023

Describe the bug
I visited our server https://nostr.example.nl/terms (not it's real name) and got the terms.html, but is was rather simple. As it turns out there are some Content-Security-Policy issues:

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' https://cdn.jsdelivr.net/npm/".

To Reproduce
Steps to reproduce the behavior:

  1. Visit, with a browser, https://server.domain.tld/terms
  2. Look in the 'developer tools console' of the browser

Expected behavior

No CSP error(s), nicer formatted page.

Screenshots

N/A

System (please complete the following information):

  • OS: Ubuntu 22.04
  • Platform: Docker
  • Version: 1.19.0 (according to NIP-11 output)

Logs

N/A

Additional context

I'm new to nostream, so I'm not sure where exactly the Content-Security-Header is set and defined. So i'm sorry if I'm signalling the issue at the wrong place.

I followed these steps for installation: https://andreneves.xyz/p/set-up-a-nostr-relay-server-in-under

@mdavids mdavids added the bug Something isn't working label Feb 3, 2023
@cameri
Copy link
Owner

cameri commented Feb 3, 2023

Thanks for the report!

@cameri
Copy link
Owner

cameri commented Feb 15, 2023

@mdavids I am unable to reproduce this issue. Are you still having it? If so, can you provide a copy of your settings file and your relay URL?

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

2 participants