Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Adding CSP (Content Security Policy) to a page?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Adding CSP (Content Security Policy) to a page? (Read 1184 times)
mihak
Jr. Member
Posts: 70
Karma: 5
Adding CSP (Content Security Policy) to a page?
«
on:
May 24, 2021, 08:57:24 am »
I would like to add a CSP policy to one Volt page in the view, allowing js code on that page to reach out and grab a specific 3rd-party API on the internet. Without defining CSP in either http header or in the <meta> tag in the <head> of the page, XMLhttprequest() refuses to execute.
Any suggestions how to do that? I tried to modify the controller for that view - with no success...
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Adding CSP (Content Security Policy) to a page?