Restangular确实支持withCredentials选项和其他选项的CORS请求? [英] Restangular does support withCredentials options and the other options for a cors request?
本文介绍了Restangular确实支持withCredentials选项和其他选项的CORS请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在谷歌上搜索,但我没有找到任何线索。
I'm googling but I don't find any clue on
如果restangular支持withcredentials选项,其他选项的CORS请求或没有。
if restangular support withcredentials option and the other options for a cors request or not.
我的意思是我可以用它在CORS通话没有任何问题?
I mean can I use it in a cors calls without any issues ?
你能帮助我,好吗?
推荐答案
是的是的。
您可以使用 setDefaultHttpFields
设置它们:<一href=\"https://github.com/mgonto/restangular#setdefaulthttpfields\">https://github.com/mgonto/restangular#setdefaulthttpfields
它具有相同的格式$ HTTP值
It has the same format as $http values.
这篇关于Restangular确实支持withCredentials选项和其他选项的CORS请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文