mirror of https://github.com/buster-so/buster.git
Update embed hit
This commit is contained in:
parent
592e19181c
commit
9dd5db6a77
|
@ -7,7 +7,7 @@ export const securityMiddleware = createMiddleware({ type: 'function' }).server(
|
|||
// Check if this is an embed route by examining the request URL
|
||||
const request = getWebRequest();
|
||||
const url = new URL(request.url);
|
||||
const isEmbed = url.pathname.startsWith('/embed/');
|
||||
const isEmbed = url.pathname.startsWith('/embed');
|
||||
|
||||
setHeaders(createSecurityHeaders(isEmbed));
|
||||
|
||||
|
|
Loading…
Reference in New Issue