mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-27 11:14:59 +00:00
Merge b807fb3ee1 into 26f49e6819
This commit is contained in:
commit
739dc88665
2 changed files with 3 additions and 2 deletions
|
|
@ -45,11 +45,11 @@ import org.springframework.security.web.util.matcher.RequestMatcher;
|
|||
public class SecurityConfig {
|
||||
private static final String CONTENT_SECURITY_POLICY = String.join("; ",
|
||||
"default-src 'self'",
|
||||
"script-src 'self' 'unsafe-inline' 'unsafe-eval'",
|
||||
"script-src 'self'",
|
||||
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
|
||||
"img-src 'self' data: blob: https:",
|
||||
"font-src 'self' data: https://fonts.gstatic.com",
|
||||
"connect-src 'self' ws: wss: http://localhost:* https://localhost:*",
|
||||
"connect-src 'self'",
|
||||
"object-src 'none'",
|
||||
"base-uri 'self'",
|
||||
"frame-ancestors 'none'",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
server_tokens off;
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue