This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
OpenSource
/
dify
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
152
Wiki
Activity
Browse Source
Revert "♻️ refactor(middleware): remove duplicate CSP header assignment" (
#20592
)
tags/1.4.2
crazywoola
5 months ago
parent
888cd86afd
commit
25be7c1ad5
No account linked to committer's email address
1 changed files
with
5 additions
and
0 deletions
Split View
Show Diff Stats
5
0
web/middleware.ts
+ 5
- 0
web/middleware.ts
View File
@@ -56,6 +56,11 @@ export function middleware(request: NextRequest) {
contentSecurityPolicyHeaderValue,
)
response.headers.set(
'Content-Security-Policy',
contentSecurityPolicyHeaderValue,
)
return wrapResponseWithXFrameOptions(response, pathname)
}
Write
Preview
Loading…
Cancel
Save