SSL and AJAX

Category: Ssl

randyhamlin
Asked:
2013-03-25 9:36 pm EST

Hits: 530
From what I've read on inmotionhosting, in order to use the shared ssl cert I would need to use secure##.inmotionhosting.com as the url.
Is it possible to serve a login webpage (ex http://www.domain.com/login.php) and submit the post via AJAX to the server via secure##? Does the end user see any indication of SSL with this method?
How would this url be built if the non-SSL was http://www.domain.com/php/login.php?user=xxx&password=xxx

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

Arn
Staff
18,513 Points
2013-03-25 10:50 pm EST
Hello RandyHamlin,

First, I need to point out that we do not provide the answer to programming within any particular framework or language, though we do try our best to point you in the right direction. We can't provide you the direct code, but I did manage to find a possible login: Secure login using Ajax. You can't hide the shared SSL page. Hopefully, this gets you pointed in the right direction, though.

If you have any further questions, please contact technical support or leave a comment at the bottom of the page.

Regards,

Arnel C.


You must login before you can post a comment about this answer.

After some additional reading I've learned that requesting a https page from a http page is not allowed in javascript due to 'Cross domain posting'. There's many pages regarding this. Your link does provide a work around. I'll check it out. Thanks.
randyhamlin
21 Points
2013-03-26 7:50 am EST
Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!