0
0
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:
Richard Borcsik 2024-11-18 13:02:14 +01:00 committed by GitHub
parent 3b2f77da6b
commit f6eb805277
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -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)
`