我正在检查if(response[0].title !== undefined),但是我得到了错误:
未捕获的TypeError:无法读取未定义的属性"title".
我正在制作一个Chrome扩展程序,用于从我自己的服务器中提取数据.它一次使用大约4个httpRequests,但有时我会得到如下控制台错误:
XMLHttpRequest cannot load http://apps.radionsm.lv/apps/system/index.php?request=now. Origin chrome-extension://egkddfmbidfobhchndockbhjancbpfkd is not allowed by Access-Control-Allow-Origin. 对于每个人有时没有.
如果我发送header('Access-Control-Allow-Origin: *');将修复它吗?