fix: add CSP headers to allow blob URLs for media playback

This commit is contained in:
Atash03 2026-01-26 00:14:44 +05:00
parent 6b40ea0c9c
commit 895d1b8c08
1 changed files with 14 additions and 0 deletions

View File

@ -2,6 +2,20 @@
const nextConfig = {
reactStrictMode: false,
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Content-Security-Policy',
value: "default-src 'self'; media-src 'self' blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' https:; font-src 'self' data:; frame-src 'self' https:;"
}
]
}
]
},
images: {
domains: ["turkmentv.gov.tm", "smstv.gov.tm", "turkmenistaninfo.gov.tm"],
remotePatterns: [