The "Access-Control-Allow-Origin" and "Vary" are HTTP headers used for implementing Cross-Origin Resource Sharing (CORS) policy.

"Access-Control-Allow-Origin" specifies which origins are allowed to access the resources of a web page using XMLHttpRequest or Fetch API. In this case, the value is "https://foo.taobao.com", which means that only requests coming from "https://foo.taobao.com" are allowed to access the resources.

"Vary" header is used to indicate to the browser that the response may vary based on the value of the "Origin" request header. It helps in caching and serving the appropriate response based on the request origin.

Overall, these headers are used for CORS management, allowing specific origins to access resources and indicating that the response may vary based on the request origin

Access-Contro1-A11ow-Origin httpsfootaobaocomVary Origin

原文地址: https://www.cveoy.top/t/topic/iLGv 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录