我正在尝试将服务器设置为允许跨域脚本,以访问appengine提供的资产:"static.myapp.org“
我将此配置添加到我的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.有什么想法吗?
发布于 2012-09-22 01:41:28
静态内容上的HTTP标头是introduced in GAE SDK 1.7.0。您似乎使用的是1.6.6。
https://stackoverflow.com/questions/12533942
复制相似问题