HTTP basic authentication using javascript best methods

13,879

Maybe this article helps you; Basic javascript Http authentification code

There's a few tips to help you improve a basic javascript http authentification code.

Share:
13,879
Droid646197
Author by

Droid646197

Updated on June 05, 2022

Comments

  • Droid646197
    Droid646197 almost 2 years

    I have html5 + javascript +phone-gap app for ios. I need to connect to a protected url and pass HTTP basic authentication in base64 to get a rss feed. Am not using jquery in the app and look good advice and best practices to get this done.

    Thank you

  • Droid646197
    Droid646197 over 12 years
    I have looked at this answer, though it did not solve my problem. So that is why i asked the question. Thank you for taking the time to help. All the best... Droid646197
  • vrunoa
    vrunoa over 12 years
    Do you want to use javascript to read the rss or make a phonegap plugin ? Maybe I could help you make this done
  • Droid646197
    Droid646197 over 12 years
    vrunoa, I think the phonegap plugin would be the best method. I can use the Google-feed api to read a rss feed. I need to send my user and password to a protected server to pull the xml base feed. Thank you.