【发布时间】:2015-10-08 12:42:58
【问题描述】:
这是我在研究后发现的允许跨域请求的 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.
可能出了什么问题?
【问题讨论】: