Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 从rails中的microsoft edge browser接收自定义标题时出错_Angular_Http Headers_Ruby On Rails 5_Microsoft Edge - Fatal编程技术网

Angular 从rails中的microsoft edge browser接收自定义标题时出错

Angular 从rails中的microsoft edge browser接收自定义标题时出错,angular,http-headers,ruby-on-rails-5,microsoft-edge,Angular,Http Headers,Ruby On Rails 5,Microsoft Edge,我的后端应用程序在RoR中,前端应用程序在Angular2 在生产过程中,我在microsoft edge browser中接收标题时出错,该代码在其他浏览器(如safari、chrome、mozila)中运行良好。 我没有在Edge浏览器中获得标题'auth\u token',但它在本地主机上工作。我通过将标题名称从auth\u token更改为auth token解决了这个问题,在服务器端我收到了类似HTTP\u auth\u token的消息 Edge不允许在标题中使用下划线,而其他浏览器

我的后端应用程序在
RoR
中,前端应用程序在
Angular2
在生产过程中,我在microsoft edge browser中接收标题时出错,该代码在其他浏览器(如safari、chrome、mozila)中运行良好。
我没有在
Edge
浏览器中获得标题
'auth\u token'
,但它在本地主机上工作。

我通过将标题名称从
auth\u token
更改为
auth token
解决了这个问题,在服务器端我收到了类似
HTTP\u auth\u token
的消息


Edge不允许在标题中使用下划线,而其他浏览器则允许

检查此链接并查看请求中的标题名称cases。@Prithvi:这不是我的问题。我无法接收任何自定义标题