第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

Snippets add import jQuery CORS

let script = document.createElement('script');

script.src="https://code.jquery.com/jquery-3.2.1.min.js";

script.integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=";

script.crossorigin="anonymous";

document.head.appendChild(script);


error:

Subresource Integrity: The resource 'https://code.jquery.com/jquery-3.2.1.min.js' has an integrity attribute, but the resource requires the request to be CORS enabled to check the integrity, and it is not. The resource has been blocked because the integrity cannot be enforced.

正在回答

1 回答

let?script?=?document.createElement('script');
script.src="https://code.jquery.com/jquery-3.2.1.min.js";
script.integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=";
script.crossorigin="anonymous";
document.head.appendChild(script);

我嘗試了一下,去掉integrity和crossorigin屬性,就不再報CORS了...

如下:

let?script?=?document.createElement('script');
script.src="https://code.jquery.com/jquery-3.2.1.min.js";
document.head.appendChild(script);


1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Chrome DevTools開發(fā)者工具調試指南
  • 參與學習       17117    人
  • 解答問題       21    個

全面掌握 Chrome 瀏覽器開發(fā)者工具的各項功能。

進入課程

Snippets add import jQuery CORS

我要回答 關注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號