#Changing csp_directives for HedgeDoc behing nginx proxy manager

1 messages · Page 1 of 1 (latest)

tropic mango
#

this is kinda errors I'm getting

Refused to load the script '<URL>' because it violates the following Content Security Policy directive: "script-src <URL> <URL> <URL> <URL> <URL> <URL> 'unsafe-inline'
tropic mango
#

I made from progress by adding this to the config:

#
csp:
  enable: true
  addDefaults: true
  directives:
    scriptSrc: mydomain.com, homeassistant.local
#

however now I'm getting:

Mixed Content: The page at 'https://XXXXX/' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://XXXXX/login'. This endpoint should be made available over a secure connection.Understand this warning
XXXXX/:1 Refused to send form data to 'http://XXXXX/login' because it violates the following Content Security Policy directive: "form-action 'self'".
#

how can I make sure everything stay https?

tropic mango
#

ok I enforced https everywhere with NPM but now I get because it violates the following Content Security Policy directive: "base-uri 'self'".

tropic mango