【发布时间】:2012-03-13 01:19:12
【问题描述】:
我正在使用 GWT 并希望在一个 html 页面(模块)上启用 SSL。我有多个模块,其中一个模块通过我的 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>
我有另一个模块(登录页面),我从中调用 Secure.html 以通过 SSL 传递用户的登录信息。我有以下问题:
- 我从 http(非安全登录页面)调用 Secure.html 模块是否违反了同源策略?
- 如何在嵌入式码头中添加 SSL 连接器?我正在使用 GWT eclipse 插件。不过我讨厌它。当我尝试访问受保护的 Secure.html 页面时,我得到 403 - 在开发模式下被禁止。我不想为我的所有模块使用 SSL (
-server :ssl)。但是,如果我将应用程序部署在外部服务器 tomcat 上,它就可以正常工作。 - 我做得对吗?一定有比这更好的方法吗?
【问题讨论】:
标签: gwt same-origin-policy embedded-jetty