Skip to content

Commit

Permalink
fix: CSP URL for object entry script
Browse files Browse the repository at this point in the history
  • Loading branch information
filoozom committed Sep 12, 2023
1 parent 565dd45 commit c0e85b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/objects/external/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const getNPMObject = async (
if (!added['script-src']) {
added['script-src'] = ''
}
added['script-src'] += ` ${window.location.origin + script}`
added['script-src'] += ` ${script}`

return {
script,
Expand Down

0 comments on commit c0e85b8

Please sign in to comment.