# Ssl\_requirement ajax call from non https to https

**URL:** <https://www.ruby-forum.com/t/ssl-requirement-ajax-call-from-non-https-to-https/144582>\
**Category:** Rails\
**Created:** [July 31, 2008, 6:41am UTC](https://www.ruby-forum.com/t/ssl-requirement-ajax-call-from-non-https-to-https/144582 "2008-07-31T06:41:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kineticac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kineticac](https://www.ruby-forum.com/u/kineticac)\
**Post date:** [July 31, 2008, 6:41am UTC](https://www.ruby-forum.com/t/ssl-requirement-ajax-call-from-non-https-to-https/144582/1 "2008-07-31T06:41:51Z")

</div>

I have a page that has nothing on it that needs to be secured by SSL,  
except when someone wants to hit an ajax request to login.

I don’t want to secure every page, just so that when I render a  
partial that needs to be https, it’ll be protected.

I’m using the ssl\_requirement plugin.

Any ideas on what to do? Is this even possible? Or will I have to  
encrypt every single page? I’d rather not do popup windows,  
everything’s nice and slickly inserted with cool DOM manipulation.

Thanks!
