选项不允许的方法Laravel Graphql

时间:2019-07-08 20:47:35

标签: php laravel cors graphql

使用graphql api时,rebing/graphql-laravel出现问题,我看到此错误

OPTIONS http://backend.mabdi.ir/graphql 405 (Method Not Allowed)

Access to XMLHttpRequest at 'http://backend.mabdi.ir/graphql' from origin 
'http://mabdi.ir' has been blocked by CORS policy: Response to preflight 
request 
doesn't pass access control check: No 'Access-Control-Allow-Origin' header is 
present on the requested resource.

我看到了“其他主题”,并使用了“答案”,但仍然在那里发出问题

0 个答案:

没有答案