sch*_*rht 8 javascript php cors laravel-5.3 angular
我正在从AngularJS前端向Laravel Back-end做一个CORS POST请求.
Accept:*/*
Accept-Encoding:gzip, deflate, sdch
Accept-Language:nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4
Access-Control-Request-Headers:content-type
Access-Control-Request-Method:POST
Cache-Control:no-cache
Connection:keep-alive
Host:x.local
Origin:http://y.local
Pragma:no-cache
Referer:http://y.local/
Run Code Online (Sandbox Code Playgroud)
Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Methods:POST, GET, OPTIONS, PUT
Access-Control-Allow-Origin:*
Cache-Control:no-cache
Connection:keep-alive
Content-Length:16
Content-Type:application/json
Date:Mon, 31 Oct 2016 09:22:51 GMT
Server:nginx/1.11.1
Run Code Online (Sandbox Code Playgroud)
在我获得http状态200 OK(OPTIONS请求)后,Safari挂起.我该怎么办?
| 归档时间: |
|
| 查看次数: |
2439 次 |
| 最近记录: |