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

Refused to fetch content from '<DOMAIN>:443/static/assets/index-3a79bbc9.js' because it violates the following Content Security Policy directive: "default-src 'self' <DOMAIN>:443". #76

Open
utdelsec opened this issue Jan 11, 2024 · 0 comments

Comments

@utdelsec
Copy link

utdelsec commented Jan 11, 2024

Hi,

I have configured the docker container to expose 443 port for https and now can access the admin page over HTTPS, however when I try to access outline, I get the following error:

Refused to fetch content from '<DOMAIN>:443/static/assets/index-3a79bbc9.js' because it violates the following Content Security Policy directive: "default-src 'self' <DOMAIN>:443".

There are no modifications in the config file except for

wk-nginx:
    image: nginx
    ports:
      - ${HTTP_IP}:${HTTP_PORT_IP}:80
      - ${HTTPS_IP}:${HTTPS_PORT_IP}:443
    volumes:
      - ./config/nginx/:/etc/nginx/conf.d/:ro
      - ./data/uc/static_root:/uc/static_root:ro
      - /etc/certs/ssl_cert.cer:/etc/certs/ssl_cert.cer:ro
      - /etc/certs/ssl_cert.key:/etc/certs/ssl_cert.key:ro

I have been playing with nginx add_headers but so far nothing has worked. Please help me.

@utdelsec utdelsec changed the title Refused to fetch content from 'spaces.riscure.com:443/static/assets/index-3a79bbc9.js' because it violates the following Content Security Policy directive: "default-src 'self' <DOMAIN>:443". Refused to fetch content from '<DOMAIN>:443/static/assets/index-3a79bbc9.js' because it violates the following Content Security Policy directive: "default-src 'self' <DOMAIN>:443". Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant