mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 13:39:22 +01:00
fix: potential cors issue when inlining stylesheets for recordings (#25932)
This commit is contained in:
parent
3b2f77da6b
commit
f6eb805277
Binary file not shown.
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 55 KiB |
@ -87,6 +87,7 @@ export function copyIndexHtml(
|
||||
const cssLoader = `
|
||||
const link = document.createElement("link");
|
||||
link.rel = "stylesheet";
|
||||
link.crossOrigin = "anonymous";
|
||||
link.href = (window.JS_URL || '') + "/static/" + ${JSON.stringify(cssFile)};
|
||||
document.head.appendChild(link)
|
||||
`
|
||||
|
Loading…
Reference in New Issue
Block a user