mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-03 18:34:46 +00:00
use Content-Security-Policy to prevent javascript: injection in URLs.
unfortunately we still require 'unsafe-eval' due to jquery.getScript
This commit is contained in:
parent
2668b4d832
commit
e7a1bf77fa
@ -377,6 +377,7 @@ static string HTTPReply(int nStatus, const string& strMsg, bool keepalive, const
|
||||
"Connection: %s\r\n"
|
||||
"Content-Length: %"PRIszu"\r\n"
|
||||
"Content-Type: %s\r\n"
|
||||
"Content-Security-Policy: script-src 'self' 'unsafe-eval'\r\n"
|
||||
"Server: bitcoin-json-rpc/%s\r\n"
|
||||
"\r\n",
|
||||
nStatus,
|
||||
|
Loading…
x
Reference in New Issue
Block a user