birdietorerik's avatar

403 error

Hi!

Have created a application in laravel 8 and vue.js

When i logging in my system, it redirect to my dashboard like -> https://yourdomene.com/admin/dashboard

Most of the time, its working fine.

But somtimes when i login to my system i get 403 error.??

When i change my URL to: https://yourdomene.com/adminTEST/dashboard

I then get 404 error

What is the problem ?

0 likes
6 replies
birdietorerik's avatar

@Tray2 Hi!

In my api.php routes file i have Route::group(['prefix' => 'v1', 'as' => 'api.', 'namespace' => 'Api\V1\Admin', 'middleware' => ['auth:sanctum']], function () {

Sinnbeck's avatar

@birdietorerik you say the path with the error is /admin/dashboard but show a route with prefix /v1/?

What is the actual url and route getting to error?

Umid82's avatar

@birdietorerik , I see you're using sanctum authentication, you should follow that auth setting rules, maybe you should use proxy in HTTP client to avoid CORS and same-site policy issues

Umid82's avatar

@birdietorerik, Hi, I think this link can be useful: laravel.com/docs/8.x/sanctum because you are using sanctum authentication system

Please or to participate in this conversation.