Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome extension 通过'访问XMLHttpRequest;https://website.com/ajaxrequest' 来自原点'&书信电报;起源>';已被CORS策略阻止_Google Chrome Extension - Fatal编程技术网

Google chrome extension 通过'访问XMLHttpRequest;https://website.com/ajaxrequest' 来自原点'&书信电报;起源>';已被CORS策略阻止

Google chrome extension 通过'访问XMLHttpRequest;https://website.com/ajaxrequest' 来自原点'&书信电报;起源>';已被CORS策略阻止,google-chrome-extension,Google Chrome Extension,我试图通过ajax从我的网站获取一些json响应,但在控制台面板中,它不断抛出此错误。 CORS策略已阻止从源代码访问位于“”的XMLHttpRequest chrome扩展名://'的XMLHttpRequest:请求的资源上不存在“访问控制允许源代码”标头 这是我的舱单 { "update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "version": "1.1", "s

我试图通过ajax从我的网站获取一些json响应,但在控制台面板中,它不断抛出此错误。 CORS策略已阻止从源代码访问位于“”的XMLHttpRequest chrome扩展名://'的XMLHttpRequest:请求的资源上不存在“访问控制允许源代码”标头

这是我的舱单

{
"update_url": "https://clients2.google.com/service/update2/crx",

"manifest_version": 2,

"version": "1.1",
"short_name": "TestApp",
"name": "My Test App",
"icons": {"128":"logo.png"},
"description": "some short desc",
"browser_action": {
    "default_icon": "icon.png",
    "default_title": "XYZ",
    "default_popup": "index.html"
},

"permissions": ["https://wwww.website.com/*", "http://localhost/"],
"content_scripts": [{
    "js": ["jquery.min.js","scripts.js"],
    "matches": ["https://wwww.website.com/*"]
}]
}

好的。我的密码是对的。只是我必须关闭我的浏览器(所有窗口)并再次运行它。它似乎已经解决了这个问题。干杯

好的。我的密码是对的。只是我必须关闭我的浏览器(所有窗口)并再次运行它。它似乎已经解决了这个问题。干杯