404labfr / 404labfr/laravel-impersonate

Seeing 403's after basic Laravel 9 install

Open
#170 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
2.3k
Forks
235
PR merge metrics
No merged PRs in 30d

Description

Using Laravel 9.34.0 and stock `session` auth driver.

Installed the package:
```
"lab404/laravel-impersonate": "^1.7",
```

Added `Impersonate` trait to `app\User.php`:
```
use HasFactory, Notifiable, Impersonate;
```

Added the route helper at the top of `routes/web.php`:
```
Route::impersonate();
```

Navigating to `/impersonate/take/2` displays the "403 | Forbidden" error page.
Navigating to `/` shows I am impersonating user `2` as expected.
Navigating to `/impersonate/leave` again displays the "403 | Forbidden" error page.
Navigating to `/` shows I am logged in as the original user again.

Any idea why the impersonate routes are not redirecting and instead returning a 403?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.