Reputation: 11
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:
-server :ssl
). But if I deploy the app on an external server tomcat, it works fine.Upvotes: 1
Views: 582
Reputation: 22859
1) You're definitely violating same-origin policy by changing the protocol.
2) You don't need to have the connector for the embedded Jetty...what you see there is (and should be) identical to what you'd see over HTTPS. SSL is a matter of putting your content behind a secure server. IMO this is a production concern, not a development concern.
Upvotes: 1