GWT&;证明
我有GWT,RestyGWT,Widlfly Standalone.xmlGWT&;证明,gwt,wildfly,resty-gwt,Gwt,Wildfly,Resty Gwt,我有GWT,RestyGWT,Widlfly Standalone.xml <security-realm name="AdminSslRealm"> <server-identities> <ssl> <keystore path="${env.DBO_PATH_CONFIG}/${env.ADMIN_CONSOLE}" keystore-password="console" />
<security-realm name="AdminSslRealm">
<server-identities>
<ssl>
<keystore path="${env.DBO_PATH_CONFIG}/${env.ADMIN_CONSOLE}" keystore-password="console" />
</ssl>
</server-identities>
</security-realm>
</security-realms>
...
<https-listener name="httpsAdmin" socket-binding="httpsAdmin" security-realm="AdminSslRealm" enable-http2="true" />
...
<socket-binding name="httpsAdmin" port="${jboss.https.port:8553}" />
好的,我进入浏览器。看到这张照片了吗
在我接受这个连接后,一切正常
如何使客户端自动接受这种连接
2) 在此之后,当我发送另一个JSON时,我发现CORS有问题
XMLHttpRequest cannot load https://localhost:8443/services/v2/admin/test. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://127.0.0.1:8888' is therefore not allowed access.
我能解决这个问题而不在WiildFy上包含COR吗
如果我能帮助解决这些问题,证书?如果有的话。提示如何调整。在Wildfly上我做了,但在GWT SuperDev Mode=(使用SDM进行测试有一种方法。您必须使用混合内容策略。但为了加载资源,您必须破解yourproject.nocache.js文件,并更改var hostename=[super dev Mode server的ip]。我还将该类放在我的类路径上,并使用它来删除默认版本。我用绑定地址替换该变量。
XMLHttpRequest cannot load https://localhost:8443/services/v2/admin/test. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://127.0.0.1:8888' is therefore not allowed access.