通过鱿鱼时缺少“ Access-Control-Allow-Origin”标头

时间:2018-09-27 06:43:02

标签: proxy http-headers squid

当我访问http://sharefile.com时,通过鱿鱼访问时响应头完全不同。

squid配置文件允许来自客户端的每个HTTP / S请求。

我在浏览器中看到的错误是,

enter image description here

带有鱿鱼的响应标头:

HTTP/1.1 200 Connection established
Date: Wed, 26 Sep 2018 07:19:25 GMT
Content-Length: 0
X-SF-Server: service_contentviewer_http/i-04336d7a298b91298_us-east-1c
Strict-Transport-Security: max-age=16000000; includeSubDomains; preload;
Set-Cookie: CONTENTVIEWER_SRVNAME=i-04336d7a298b91298; path=/
Cache-Control: private
Connection: keep-alive

不带鱿鱼的响应头:

HTTP/1.1 200 OK
Access-Control-Allow-Headers: Content-Type
Access-Control-Allow-Methods: *
Access-Control-Allow-Origin: https://elastica.sharefile.com
Access-Control-Max-Age: 86400
Date: Wed, 26 Sep 2018 07:21:40 GMT
Content-Length: 0
X-SF-Server: service_contentviewer_http/i-0cf021a2e45601ea2_us-east-1b
Strict-Transport-Security: max-age=16000000; includeSubDomains; preload;
Set-Cookie: CONTENTVIEWER_SRVNAME=i-0cf021a2e45601ea2; path=/
Cache-control: private

0 个答案:

没有答案