XMLHttpRequest cannot load http://localhost:8081/role/datagrid. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
XMLHttpRequest cannot load http://localhost:8081/role/datagrid. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
7 回答5.4k 阅读
6 回答6.9k 阅读✓ 已解决
3 回答5.2k 阅读✓ 已解决
5 回答2k 阅读
3 回答1.5k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
2 回答1.9k 阅读✓ 已解决
跨域了,需要设置
Access-Control-Allow-Origin
为你的域名,或者直接为*