Skip to content

Instantly share code, notes, and snippets.

@leeight
Created September 18, 2017 07:42
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 leeight/adafc5f7a7eeb5c2a0e14f5724385ca7 to your computer and use it in GitHub Desktop.
Save leeight/adafc5f7a7eeb5c2a0e14f5724385ca7 to your computer and use it in GitHub Desktop.
test.md

源站返回

$ curl -X OPTIONS -H 'Access-Control-Request-Method: GET' -H 'Origin: https://console.bce.baidu.com' https://bj.bcebos.com/bce-cdn/ecom/esl/2-1-6/esl.js -i

HTTP/1.1 200 OK
Date: Mon, 18 Sep 2017 07:39:25 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 0
Connection: keep-alive
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, HEAD
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Content-Length, x-bce-next-append-offset, x-bce-object-type, x-bce-request-id
Access-Control-Max-Age: 1800
Server: BceBos
x-bce-debug-id: MTAuMTgxLjY5LjE4Ok1vbiwgMTggU2VwIDIwMTcgMTU6Mzk6MjUgQ1NUOjIzNjU0MjQ3OTE=
x-bce-request-id: e44e28e3-9c6f-4efe-94e9-cae663fb1a23

CDN返回

$ curl -X OPTIONS -H 'Access-Control-Request-Method: GET' -H 'Origin: https://console.bce.baidu.com' https://cdn.bdstatic.com/ecom/esl/2-1-6/esl.js -i

HTTP/1.1 200 OK
Server: bfe/1.0.8.13-sslpool-patch
Date: Mon, 18 Sep 2017 07:39:56 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 0
Connection: keep-alive
Accept-Ranges: bytes
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, HEAD
Access-Control-Allow-Origin: https://console.bce.baidu.com
Access-Control-Expose-Headers: ETag, Content-Length, x-bce-next-append-offset, x-bce-object-type, x-bce-request-id
Access-Control-Max-Age: 1800
x-bce-debug-id: MTAuMTgxLjE2LjM4Ok1vbiwgMTggU2VwIDIwMTcgMTU6Mzk6NTYgQ1NUOjIzOTY3Njc2MTM=
x-bce-request-id: 1e8de4cd-763c-41df-a24a-6a462d5e0354
Ohc-Response-Time: 0 0 18 18 91 91
Timing-Allow-Origin: *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment