Passport: Missing CORS headers for /oauth/token

Created on 3 Nov 2017  ·  5Comments  ·  Source: laravel/passport

/oauth/token routes are missing CORS headers and return a HTTP 405 response when doing a HEAD request.

Most helpful comment

File: config/cors.php

ADD oauth/* from paths

'paths' => ['api/*', 'oauth/*'],

All 5 comments

you may find this useful:
https://github.com/barryvdh/laravel-cors 🍻

laravel-cors not work for me

Try the package mentioned above.

File: config/cors.php

ADD oauth/* from paths

'paths' => ['api/*', 'oauth/*'],

@danielrangelsa Saved the day!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

huiyonghkw picture huiyonghkw  ·  3Comments

parth-vora-7 picture parth-vora-7  ·  4Comments

duccanh0022 picture duccanh0022  ·  3Comments

brryfrmnn picture brryfrmnn  ·  3Comments

cookiejarblush picture cookiejarblush  ·  4Comments