Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8681675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:34:21+00:00 2026-06-12T21:34:21+00:00

I have a site (running a 3rd party app) that’s available over HTTPS and

  • 0

I have a site (running a 3rd party app) that’s available over HTTPS and HTTP. It allows people to log in with Basic Authentication. I’m trying to force all logins to happen over HTTPS rather than HTTP.

The app is odd in that the authentication “realm” is the root of the domain (/), and 401s are returned based on query string parameters rather than the URL path. I think I’ve got my RewriteRules set up properly so that any request that could result in a 401 is redirected to HTTPS first. However, I’m worried that after logging into the secure site, if users navigate back to the HTTP version somehow, browsers will still send Authorization headers (now unencrypted) without seeing a 401 since it’s all the same domain with the /same/path/structure. That is, I’m worried about this behaviour from RFC 2617:

A client MAY preemptively send the corresponding Authorization header with requests for resources in that space without receipt of another challenge from the server.

Should I worry? Or does switching protocols (https to http) prevent browsers from sending those preemptive auth headers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T21:34:23+00:00Added an answer on June 12, 2026 at 9:34 pm

    We heavily use basic auth for our application. All using https of course 🙂

    Browsers have a good sandbox model, they know that when the protocol changes, the target machine may not be the same anymore. You don’t have to worry about browsers submitting the authentication information.

    Even when they run into the initial 401, they will still ask the user for the username/password pair.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have our site running on HTTPS. Is there a way to accept HTTP
I have a site running in django and want to make it available on
We have a widget that runs on 3rd party websites, that is, anyone who
I have website that use XMLHttpRequest (jQuery, actually). I also have another site running
I have a intranet site running PHP 5 that needs to list a folder
we have a site that is running on Jquery and Backbone. But it is
Basic question...I have a site running in a VM, say the URL is http://localhost/sites/foo/default.aspx
We have an ASP.NET 2.0 site. A 3rd party has created a web service
I have a site running on amazon elastic beanstalk with the following traffic pattern:
I have a site running on Magento and i have build some hand made

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.