JWT Auth API

JSON Web Token Authentication for your OctoberCMS API integrated with RainLab.User

Back to JWT Auth API Support

Incremental
Incremental

Hello, I'm using this CORS plugin on October : https://octobercms.com/plugin/offline-cors and a Vue application for Frontend with axios. It was previously working with https://octobercms.com/plugin/rluders-cors but due to dependencies problems with October, I moved to your plugin.

In Firefox console I get : "CORS Preflight Did Not Succeed" and "Cross-Origin Request Blocked" Could it be a problem with JWT or CORS ? CORS has "Allowed origins": and "Allowed headers":

In October, my plugin, I have a route.php with :

Route::post('Change-Pwd', function (\Request $request) {
   return response()->json(('The test was successful'));
})->middleware('\Tymon\JWTAuth\Middleware\GetUserFromToken');

Typing directly the URL, I get a 404 error and through axios the CORS error. Do I need something more in route.php ???

Thanks for your help, I'm searching since a long time...

Last updated

1-1 of 1