提交 1d144623 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!255 Add unsafe-eval CSP to backend application

Merge pull request !255 from ougongchang/add_csp
......@@ -45,6 +45,7 @@ def get_security_headers():
'frame-src': ["'self'"] + domain_white_list,
'frame-ancestors': ["'self'"] + domain_white_list,
'default-src': ["'self'"],
'script-src': ["'self'", "'unsafe-eval'"]
}
headers = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册