Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GWT&;证明_Gwt_Wildfly_Resty Gwt - Fatal编程技术网

GWT&;证明

GWT&;证明,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" />

我有GWT,RestyGWT,Widlfly

Standalone.xml

    <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.