I have a landing page on http://example.com ;that has an ajax login bar on it, which sends the user's login to the server, receives the authentication response, and displays it to the user.

The problem with this approach, is that user login information is sent in cleartext to the server, without SSL encryption. However, when doing the same POST request to https://example.com, NGINX responds with 401 Unauthorized.

In what ways might we be able to use https://example.com/user_api as the authorization URL?

Many thanks!

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.