widthCredentials

学习mark

 

有一点需要注意,设置了widthCredentials为true的,虽然请求中会包含cookie,但是响应中Set-Cookie的cookie仍然遵循同源策略,所以你是访问不了这些cookie的。

 

http://zawa.iteye.com/blog/1868108

 

http://newhtml.net/using-cors/

 

jquery firefox bug:

http://www.cnblogs.com/Brose/p/cors_ajax_withCredentials_firefox.html

猜你喜欢

转载自luqingxuan.iteye.com/blog/2395510