Giter Club home page Giter Club logo

Comments (9)

tedvanderveen avatar tedvanderveen commented on June 7, 2024

+1 sounds like a similar problem we're having here

from angular-jwt.

mgonto avatar mgonto commented on June 7, 2024

Unfortunately, I don't have any IE to debug (nor windows :(). Could you help me out with it? Where is it failling if you debug the code?

Thanks for the report!

from angular-jwt.

ramsaylee avatar ramsaylee commented on June 7, 2024

@mgonto Actually I did debug the code but got nothing. It just didn't send requests with angular-jwt. I also did some research and got nothing neither. I doute that this is not a problem of angular-jwt, maybe IE8/9 have problems with custom http header.

Is there any way I can do to send token not in the header but in the query string?

Thanks!

from angular-jwt.

alexbokii avatar alexbokii commented on June 7, 2024

Hi guys! I have the same issue - an error in IE9. Console says "Object doesn't support this property or method 'atob' "
IE9 doesn't support the method atob() (support IE10+)
If someone knows how to fix this issue can you share it please?

from angular-jwt.

peteringram0 avatar peteringram0 commented on June 7, 2024

Line number 75 on angular-jwt.js is causing the IE9 issues.

return decodeURIComponent(escape(window.atob(output)));

As per W3School .atob is only supported on IE10 +
http://www.w3schools.com/jsref/met_win_atob.asp

from angular-jwt.

mgonto avatar mgonto commented on June 7, 2024

Thanks for explaining the problem!.

Is anybody up for a PR to fix this :)?

Thanks!

from angular-jwt.

MCKmecik avatar MCKmecik commented on June 7, 2024

Hi guys,
has anybody solved this problem?

Thanks.

from angular-jwt.

mecapetr avatar mecapetr commented on June 7, 2024

I have solved this with base64.js
https://github.com/client9/stringencoders/tree/master/javascript

I have Included the base64.js and then in angular-jwt service called "jwtHelper" I have replaced "windows.atob" to "base64.decode".

from angular-jwt.

mgonto avatar mgonto commented on June 7, 2024

Thanks for the comment with the fix.

Closing!

from angular-jwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.