Search code examples
pythonsslcherrypy

How to make parts of a website under SSL and the rest not?


I need to create a cherrypy main page that has a login area. I want the login area to be secure, but not the rest of the page. How can I do this in CherryPy?

Ideally, any suggestions will be compatible with http://web.archive.org/web/20170210040849/http://tools.cherrypy.org:80/wiki/AuthenticationAndAccessRestrictions


Solution

  • Assuming you only want parts of the actual page to be secure, you should create an iframe pointing to a HTTPS source. However, this shows a "secure and non-secure items on page" warning to the user.