I am using GWT and want to enable SSL on one html page(module). I have multiple modules and one such module is secured with following configuration in my web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name></web-resource-name>
<url-pattern>/Secure.html</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
I have another module (a login page), from which I call Secure.html to pass users' login information over SSL. I have following questions:
- Am I violating same origin policy by calling Secure.html module from http (the non secured login page)?
- How do I add a connector for SSL in the embedded jetty? I am using GWT eclipse plugin. I hate it though. When I try to access the secured Secure.html page, I get 403 - forbidden in dev mode. I don't want to use SSL for all my modules (
-server :ssl). But if I deploy the app on an external server tomcat, it works fine. - Am I doing it right? Must be better approach than this?