简体   繁体   English

ember-simple-auth和IE

[英]ember-simple-auth and IE

I've recently upgrated to 0.1.1 from 0.13, and after a few hiccups it seems to be working. 我最近将0.13从0.13升级到0.1.1,经过几次打h,它似乎仍然有效。 I can login to my app using most browsers (IE9-11, FF, Chrome) when running in development on my local machine. 在本地计算机上进行开发时,我可以使用大多数浏览器(IE9-11,FF,Chrome)登录到我的应用程序。

When I deploy to a staging environment on heroku I'm seeing some strange behaviour on IE (9-11). 当我在heroku上部署到暂存环境时,我在IE(9-11)上看到一些奇怪的行为。 Basically it looks like the bearer token is never being set. 基本上,看起来好像从未设置过承载令牌。 After looking through the code for ember-simple-auth I can see that it uses the ajax prefilter function to add the bearer token prior to a call back to the server. 浏览完ember-simple-auth的代码后,我可以看到它使用ajax prefilter函数在回叫服务器之前添加了承载令牌。 When I look in the Network tools on IE the token isn't there, so I always receive a 401 and am transitioned back to the index page. 当我在IE上查看网络工具时,令牌不存在,因此我总是收到401并转换回索引页。

I can see the login call to retrieve the token working, it just is never added to any subsequent calls. 我可以看到用于检索令牌的登录调用,但从未将其添加到任何后续调用中。

I've looked for bugs with jQuery, IE and prefilter but haven't turned anything up. 我一直在寻找jQuery,IE和prefilter的错误,但没有发现任何问题。 The code on staging is minified and concatenated, which makes debugging somewhat problematic. 暂存中的代码经过精简和连接,这使得调试有些问题。

Any suggestions on what to try next much appreciated. 任何关于下一步尝试的建议都非常感谢。

I've tracked this down to an issue with HTTPS and ports in ember-simple-auth. 我已经将此问题归结为ember-simple-auth中的HTTPS和端口问题。 Details can be found in this issue. 详细信息可以发现这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM