我正在尝试将来自S3存储桶中的html文件的xmlhttprequest
转换为服务器上的php文件,但它返回403状态代码。在控制台中显示错误
以下是.htaccess文件中包含的标题
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Credentials true
Header set Access-Control-Allow-Methods POST
Header set Access-Control-Allow-Headers X-Custom-Header
Http请求和响应
响应标题
HTTP/1.1 403 Forbidden
Date: Mon, 04 Sep 2017 05:24:35 GMT
Server: Apache/2.4.23 (Win64) OpenSSL/1.0.2j PHP/7.0.13
X-Frame-Options: SAMEORIGIN
Content-Length: 246
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
请求标题
OPTIONS /lms/elearning/scorm1.2/initialize.php HTTP/1.1
Host: atdi-learning.center
Connection: keep-alive
Access-Control-Request-Method: POST
Origin: http://s3-us-west-2.amazonaws.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Access-Control-Request-Headers: access-control-allow-credentials,access-control-allow-origin,withcredentials,x-custom-header
Accept: */*
Referer: http://s3-us-west-2.amazonaws.com/zzzz-elearning-objects/Users/ksadigale@zzzz.in/Courses/Objects/SimpleTest12/SimpleTest12/demo.html?courseID=59942511d50d14.87305859&userID=599422e58948a9.78795658&filepath=http://s3-us-west-2.amazonaws.com/elearning-objects/Users/ksadigale@zzzz.in/Courses/Objects/SimpleTest12/SimpleTest12/a001index.html&objectID=59a944b5efd921.99489206
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,la;q=0.6
有人可以帮忙吗?