我正在使用esri javascript api开发一个web应用程序。要访问跨域资源,我必须安装资源代理(https://github.com/Esri/resource-proxy)。我尝试按照描述的方式安装PHP版本,但是测试调用http://[yourmachine]/PHP/proxy.php?ping以一个空白屏幕和500HTTP错误代码结束。
代理验证.php表明一切都应该正常工作。
有什么想法吗?
发布于 2018-09-19 09:12:50
尝试在proxy.config中设置mustMatch="false" (仅用于测试)
发布于 2019-09-23 01:47:39
在proxy.config中尝试关注
<ProxyConfig allowedReferers="*"
mustMatch="false">
<serverUrls>
<serverUrl url="http://path/"
matchAll="true"
username="username"
password="password"
/>
</serverUrls> </ProxyConfig> https://stackoverflow.com/questions/52386562
复制相似问题