0
我試圖設置服務器允許跨域腳本,訪問由AppEngine上提供我的資產:「static.myapp.org」GAE Java服務器未能激活訪問控制允許來源
我說這個配置我的AppEngine-web.xml中作爲https://developers.google.com/appengine/docs/java/config/appconfig
<static-files>
<include path="/**.txt" >
<http-header name="Access-Control-Allow-Origin" value="http://myapp.org" />
</include>
</static-files>
解釋設置此配置後,我收到試圖上傳下一個錯誤:
Bad configuration: XML error validating /war/WEB-INF/appengine-web.xml against /opt/appengine-java-sdk-1.6.6/docs/appengine-web.xsd
Caused by: cvc-complex-type.2.2: Element 'include' must have no element [children], and the value must be valid.
任何想法?