Answer the question
In order to leave comments, you need to log in
How to combine nginx jivosite and CSP?
nginx has the following line:
add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
<head>:
<script src="//code-ya.jivosite.com/widget/A4gI9bh809" async></script>
здесь же, ранее, добавил вот такую строку:
<meta http-equiv="Content-Security-Policy"
content="default-src *.jivosite.com chat.ws.yandex.ru; connect-src ws://*.jivosite.com;">
<head>
then everything works fine. Tell me how to start jivosite and at the same time leave the CSP rule in nginx enabled?
Answer the question
In order to leave comments, you need to log in
You can try like this.
Add to Nginx config:
add_header Content-Security-Policy: default-src 'self';
report-uri: https://example.com/csp/report;
nc -l <port>
or python -m SimpleHTTPServer [port]
). nginx -t && systemctl reload nginx
). Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question