【发布时间】:2018-08-12 03:31:40
【问题描述】:
在尝试从提供商处访问 http:Localhost:9000/api/post 时出现此错误
Failed to load http://127.0.0.1:8000/api/post: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. is therefore not allowed access
任何人都知道出了什么问题。
【问题讨论】:
-
看起来是服务器配置问题,不是角度问题,您必须在服务器端设置“CORS”配置
-
Apache HTTP 服务器
-
@brk 我没有得到任何解决方案。
-
@zainudinnoori 请再次阅读 dup 帖子,您的答案包含在链接 dup 的答案中。
标签: javascript angular laravel ionic-framework