Skip to content

Instantly share code, notes, and snippets.

@ismell

ismell/OPTIONS Secret

Last active December 20, 2015 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ismell/cb7eade8f8ad06800f1e to your computer and use it in GitHub Desktop.
Save ismell/cb7eade8f8ad06800f1e to your computer and use it in GitHub Desktop.
CEPH CORS error
Request URL:https://cws.s3.go.com/
Request Method:OPTIONS
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Access-Control-Request-Headers:accept, origin, content-type
Access-Control-Request-Method:POST
Connection:keep-alive
Host:cws.s3.go.com
Origin:http://video.local.diznee.net:3000
Referer:http://video.local.diznee.net:3000/upload-test
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36
Response Headersview source
Access-Control-Allow-Methods:POST
Access-Control-Allow-Origin:http://video.local.diznee.net:3000
Access-Control-Expose-Headers:Content-Length,Date,ETag,x-amz-request-id,x-amz-id-2
Access-Control-Max-Age:3000
Connection:Keep-Alive
Content-Type:application/xml
Date:Fri, 09 Aug 2013 21:15:54 GMT
Keep-Alive:timeout=5, max=100
Server:Apache/2.2.22 (Ubuntu)
Transfer-Encoding:chunked
Request URL:https://cws.s3.go.com/
Request Headersview source
Accept:*/*
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryNcakhzYuQPbstSGb
Origin:http://video.local.diznee.net:3000
Referer:http://video.local.diznee.net:3000/upload-test
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36
Request Payload
------WebKitFormBoundaryNcakhzYuQPbstSGb
Content-Disposition: form-data; name="key"
52055c0bf1d5aa581a000003.mp4
------WebKitFormBoundaryNcakhzYuQPbstSGb
Content-Disposition: form-data; name="AWSAccessKeyId"
ABC123456
------WebKitFormBoundaryNcakhzYuQPbstSGb
Content-Disposition: form-data; name="acl"
private
------WebKitFormBoundaryNcakhzYuQPbstSGb
Content-Disposition: form-data; name="policy"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
------WebKitFormBoundaryNcakhzYuQPbstSGb
Content-Disposition: form-data; name="signature"
XXXXXX
------WebKitFormBoundaryNcakhzYuQPbstSGb
Content-Disposition: form-data; name="Content-Type"
video/mp4
------WebKitFormBoundaryNcakhzYuQPbstSGb
Content-Disposition: form-data; name="file"; filename="Extermely funny sleeping cat.mp4"
Content-Type: video/mp4
------WebKitFormBoundaryNcakhzYuQPbstSGb--
Shows: XMLHttpRequest cannot load https://cws.s3.go.com/. Origin http://video.local.diznee.net:3000 is not allowed by Access-Control-Allow-Origin.
> POST / HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: cws.s3.go.com
> Accept: */*
> Origin:http://video.local.diznee.net:3000
> Referer:http://video.local.diznee.net:3000/upload-test
> Content-Length: 1162
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=----------------------------c21510a8cdf4
>
< HTTP/1.1 100 Continue
< HTTP/1.1 204 No Content
< Date: Fri, 09 Aug 2013 21:47:33 GMT
< Server: Apache/2.2.22 (Ubuntu)
< Accept-Ranges: bytes
< Content-Length: 0
< Content-Type: application/xml
<
* Connection #0 to host cws.s3.go.com left intact
There is no Access-Control-Allow-Origin in the POST response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment