This commit is contained in:
2026-05-16 14:43:10 +07:00
parent ae20c57ecb
commit b8b6d86393
5 changed files with 33 additions and 16 deletions
+2
View File
@@ -172,6 +172,7 @@ func cors(h http.Handler) http.Handler {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "GET, POST, PUT, PATCH, DELETE")
w.Header().Set("Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, ResponseType, X-Id, X-Password")
w.Header().Set("Content-Security-Policy", "connect-src 'self' evening-detective.crabs-games.art evening-detective-admin.crabs-games.art;")
if r.Method == "OPTIONS" {
return
}
@@ -189,3 +190,4 @@ func loggingMiddleware(next http.Handler) http.Handler {
next.ServeHTTP(w, r)
})
}
@@ -5,7 +5,7 @@
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ВД Админка</title>
<script type="module" crossorigin src="/assets/index-r74wHSLo.js"></script>
<script type="module" crossorigin src="/assets/index-DvuAabsI.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CwoYUpL_.css">
</head>
<body>