mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
fix mitmweb's content security policy
This commit is contained in:
parent
a781bab7db
commit
769123498c
@ -122,7 +122,7 @@ class RequestHandler(tornado.web.RequestHandler):
|
|||||||
self.add_header(
|
self.add_header(
|
||||||
"Content-Security-Policy",
|
"Content-Security-Policy",
|
||||||
"default-src 'self'; "
|
"default-src 'self'; "
|
||||||
"connect-src 'self' ws://* ; "
|
"connect-src 'self' ws:; "
|
||||||
"style-src 'self' 'unsafe-inline'"
|
"style-src 'self' 'unsafe-inline'"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user