这是我在研究后发现的允许跨源请求的 ionic.project
{
"name": "AppName",
"app_id": "",
"proxies": [
{
"path": "/path",
"proxyUrl": "http://www.url.com/path"
}
]
}
当我在我的 cmd 终端上运行 ionic serve 时,它会启动浏览器并在控制台上显示它
XMLHttpRequest cannot load http://www.url.com/Token. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.
有什么问题吗?
最佳答案
关于android - ionic : No 'Access-Control-Allow-Origin' header is present on the requested resource,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33016165/