We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1db12b commit 5164935Copy full SHA for 5164935
apps/webapp/app/entry.server.tsx
@@ -25,6 +25,13 @@ export default function handleRequest(
25
responseHeaders: Headers,
26
remixContext: EntryContext
27
) {
28
+ const url = new URL(request.url);
29
+
30
+ if (url.pathname.startsWith("/login")) {
31
+ responseHeaders.set("X-Frame-Options", "SAMEORIGIN");
32
+ responseHeaders.set("Content-Security-Policy", "frame-ancestors 'self'");
33
+ }
34
35
const acceptLanguage = request.headers.get("accept-language");
36
const locales = parseAcceptLanguage(acceptLanguage, {
37
validate: Intl.DateTimeFormat.supportedLocalesOf,
0 commit comments