提交 3ac9b93d 编写于 作者: O ougongchang

add unsafe-eval CSP to application. The d3-graphviz 3.0 version is required to...

add unsafe-eval CSP to application. The d3-graphviz 3.0 version is required to open unsafe-eval CSP.
上级 e569b96b
...@@ -45,6 +45,7 @@ def get_security_headers(): ...@@ -45,6 +45,7 @@ def get_security_headers():
'frame-src': ["'self'"] + domain_white_list, 'frame-src': ["'self'"] + domain_white_list,
'frame-ancestors': ["'self'"] + domain_white_list, 'frame-ancestors': ["'self'"] + domain_white_list,
'default-src': ["'self'"], 'default-src': ["'self'"],
'script-src': ["'self'", "'unsafe-eval'"]
} }
headers = { headers = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册