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

brryfrmnn picture brryfrmnn  路  3Comments

rudolfdobias picture rudolfdobias  路  3Comments

gbgelado picture gbgelado  路  3Comments

s4uron picture s4uron  路  3Comments

seriousjelly picture seriousjelly  路  3Comments