【发布时间】:2018-05-05 18:50:40
【问题描述】:
我在 wicket Web 应用程序中遇到了 CORS(跨源资源共享)问题。 在本地网络中一切正常。在线部署我的网络应用程序后,我在浏览器控制台中收到以下错误。
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
如何在我的服务上允许跨源? 我正在使用检票口 6.20。
【问题讨论】: