大家好,
想請問angular element的相關問題
參考了:
建了一個angular element,
但把Build好的js file跟angular element 放到html file(.net core mvc的view)後,
在chrome 的 console顯示
-
Refused to apply inline style because it violates the following Content Security Policy directive: “default-src ‘self’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-e3V23jqTC4ZHVv3VcD/ftoXYCncc286vQIrfXrE6UxY=’), or a nonce (‘nonce-…’) is required to enable inline execution. Note also that ‘style-src’ was not explicitly set, so ‘default-src’ is used as a fallback.
-
Refused to load the image because it violates the following Content Security Policy directive: “default-src ‘self’”. Note that ‘img-src’ was not explicitly set, so ‘default-src’ is used as a fallback.
而edge則是連element都沒顯示出來,也沒有error message
請問有什麼解法嗎?謝謝