Closed FragginWagon closed 8 years ago
Forgot to mention, this is what the message is and where it fails:
Remote Address:127.0.0.1:80 Request URL:http://ov-api.dev/public/webupload Request Method:OPTIONS Status Code:400 Bad Request Response Headers view source Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type, Accept Access-Control-Allow-Methods:GET, PUT, POST, DELETE, OPTIONS Access-Control-Allow-Origin:* Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection:close Content-Length:0 Content-Type:text/html Date:Fri, 27 Nov 2015 01:28:21 GMT Expires:Thu, 19 Nov 1981 08:52:00 GMT Pragma:no-cache Server:Apache/2.4.16 (Unix) PHP/5.5.29 Set-Cookie:PHPSESSID=720ebe806d075ca92a8ccca7235d21f3; path=/ X-Powered-By:PHP/5.5.29 Request Headers view source Accept:/ Accept-Encoding:gzip, deflate, sdch Accept-Language:en-US,en;q=0.8 Access-Control-Request-Headers:content-type Access-Control-Request-Method:POST Cache-Control:no-cache Connection:keep-alive Host:ov-api.dev Origin:http://gastrotrack.dev Pragma:no-cache Referer:http://gastrotrack.dev/ User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
I think you should also check if request method is OPTIONS
and return 200 status code if it is.
Need thoughts on this: