从JS,我通过POST请求向Jph文件发送JSON。在我不得不将https://添加到文件的路径之前没有问题。在这种情况下,POST请求会自动转换为OPTIONS请求,即使域是相同的(尽管表单位于标准的http页面中)。你能帮我理解会发生什么吗?
这是我的回复标题:
Cache-Control: max-age=2592000
Content-Encoding: gzip
Content-Type: application/json; charset=UTF-8
Date: Fri, 31 Mar 2017 11:42:11 GMT
Expires: Sun, 30 Apr 2017 11:42:11 GMT
Server: Apache
Set-Cookie: 300gpBAK=R4178756556; path=/; expires=Fri, 31-Mar-2017 13:00:22 GMT
300gp=R588091587; path=/; expires=Fri, 31-Mar-2017 12:59:30 GMT
Transfer-Encoding: chunked
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Powered-By: PHP/5.6.30
X-XSS-Protection: 1; mode=block