我有两个项目,一个项目是为http://makingdoctorscrm.us-east-2.elasticbeanstalk.com/
提供服务,另一个项目是提供服务
http://makdoc.us-east-2.elasticbeanstalk.com/
。
我正在使用以下配置来允许交叉原点
<mvc:cors>
<mvc:mapping path="/**"
allowed-methods="GET,PUT,POST,OPTIONS"
/>
</mvc:cors>
我遇到错误
nonymous) @ actions.js:2154
dispasend @ jquery-3.1.1.js:9536
ajax @ jquery-3.1.1.js:9143
(atch @ jquery-3.1.1.js:5201
elemData.handle @ jquery-3.1.1.js:5009
jquery-3.1.1.js:9536 Access to XMLHttpRequest at 'http://makdoc.us-east-2.elasticbeanstalk.com/operations/login/admin/admin123' from origin 'http://makingdoctorscrm.us-east-2.elasticbeanstalk.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
当我点击服务时,尽管我提供了配置,但在控制台中却遇到了以上错误。谁能帮助我。