我对此错误有疑问。从来没有这个,现在我无法从我的数据库中加载任何记录
Failed to load http://xxxxx.xxxx.xxx/gest/db/getFromDatabase.php?allAtividades=%22allAtividades%22&order=asc&offset=0&limit=100: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.xxxxx.xxxx.xxxx' is therefore not allowed access. The response had HTTP status code 500.
我已插入此
header("Access-Control-Allow-Origin: *");
现在错误是:
Failed to load http://xxxxx.xxxx.xxx/gest/db/getFromDatabase.php?allAtividades=%22allAtividades%22&order=asc&offset=0&limit=100: Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.
有什么帮助吗?