Fix logic
This commit is contained in:
parent
66e0b84e12
commit
71589721ef
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ async function iframeDestroyerMiddleware(ctx, next) {
|
||||||
} = ctx;
|
} = ctx;
|
||||||
const decodedPath = decodeURIComponent(path);
|
const decodedPath = decodeURIComponent(path);
|
||||||
|
|
||||||
if (!decodedPath.startsWith(`/$/${PAGES.EMBED}`) || !decodedPath.startsWith(`/$/api/content/v1/get`)) {
|
if (!(decodedPath.startsWith(`/$/${PAGES.EMBED}`) || decodedPath.startsWith(`/$/api/content/v1/get`))) {
|
||||||
ctx.set('X-Frame-Options', 'DENY');
|
ctx.set('X-Frame-Options', 'DENY');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue