0
私は2台のSpringServer
サーバーを持っています。私はその後、SpringComponent
にこれらのサーバをロード春 - ホスト参照はHTTPSサーバー上のHTTPです
HTTP
<bean id="server" class="org.restlet.ext.spring.SpringServer">
<constructor-arg value="http" />
<constructor-arg value="${server.port}" />
<property name="parameters">
<props>
<prop key="tracing">false</prop>
</props>
</property>
</bean>
HTTPS
<bean id="httpsServer" class="org.restlet.ext.spring.SpringServer">
<constructor-arg value="https" />
<property name="parameters">
<props>
<prop key="sslContextFactory">org.restlet.engine.ssl.DefaultSslContextFactory</prop>
<prop key="keyStorePath">C:/store/ks.jks</prop>
<prop key="keyStorePassword">pwd</prop>
<prop key="keyPassword">pwd</prop>
<prop key="keyStoreType">JKS</prop>
</props>
</property>
</bean>
:
<bean id="component" class="org.restlet.ext.spring.SpringComponent">
<property name="serversList">
<list>
<ref bean="server" />
<ref bean="httpsServer"/>
</list>
</property>
<property name="clientsList">
<list>
<value>file</value>
<value>clap</value>
<value>http</value>
<value>https</value>
</list>
</property>
<property name="defaultHost" ref="defaultHost" />
</bean>
私の問題は、ホスト参照が私はしても、常にhttp://localhost
であるということですhttps
にあります。これにより、クロムにタイムアウトが発生しています。これは、コンテンツセキュリティポリシーのためです。
出力例:
2017年4月6日午後03時27分38秒0:0:0:0:0:0:0:1 - - 443 GET /クライアント/アプリ/パーシャル/ログイン。 html - 200 1850 0 1 http:// localhost Mozilla/5.0(Windows NT 10.0; Win64; x64)AppleWebKit/537.36(GeckoのようなKHTML)Chrome/57.0.2987.133 Safari/537.36 https:// localhost/app/login