embed.js:1 Refused to set the document's base URI to 'https://jsd-widget.atlassian.com/' because it violates the following Content Security Policy directive: "base-uri 'self'".
embed.js:1 Refused to load the script 'https://jsd-widget.atlassian.com/assets/iframe.js' because it violates the following Content Security Policy directive: "script-src 'nonce-YAnMdLzmoWqLis3WXiQKjxdHk' 'strict-dynamic'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
또한, 이전 게시물에서 스크립트를 다음과 같이 동적으로 로드하라는 제안도 확인했습니다:
javascript
var s = document.createElement('script');
s.src = "https://jsd-widget.atlassian.com/assets/embed.js";
document.body.appendChild(s);
하지만 이 방법으로도 문제가 해결되지 않습니다. 이 컨텍스트에서 strict-dynamic이 어떻게 작동해야 하는지에 대해 제가 분명히 놓치고 있는 부분이 있는 것 같습니다.
이러한 오류가 발생하는 이유와 해결 방법에 대해 도움을 주실 수 있을까요? 조언을 주시면 감사하겠습니다!
[Report Only] Refused to load the script 'https://www.mytestsite.com/mini-profiler-resources/includes.js?v=116e2a6fd81c286e004e2a0afb03baa1' because it violates the following Content Security Policy directive: "script-src 'nonce-ZSPIEwDBo6e07GuQMDkOFZerD' 'strict-dynamic'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
추가하려는 코드는 다음과 같습니다. <script data-jsd-embedded data-key="bla" data-base-url="https://jsd-widget.atlassian.com" src="https://jsd-widget.atlassian.com/assets/embed.js"></script>