最佳答案
我是新到 Laravel 和做一些 Laravel 5.3护照项目与 OAuth2.0密码授权。当我用参数卷曲 API 时,它用标记作出响应。但是,在浏览器中,它需要一个额外的安全性,端点应该添加这个安全性,因为我的请求来自 localhost,而 API 位于我的 VM 中。错误是这样的:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 400.
我知道问题是什么,但我不知道放在哪里包括该标题,因为这是一个第三方应用程序。
先行感谢专家。请帮助。