Compass -> 403 Forbidden

Solved
balam-web

Jan 24th, 2020 08:04 PM

Hi

I get a 403 error when I want to go to Compass from Voyager...

http://127.0.0.1:8000/admin/compass

All other routes are running smoothly.

I can't find compass.php in config.

I have installed Voyager on existing Laravel 6, I see users and messages... dev in progress ;)

balam-web

Jan 24th, 2020 09:04 PM

Best Answer

Not using Google I removed the code directly in the file index.blade.php and by refreshing the page I have access to Compass ...

bobbyiliev

Aug 1st, 2022 08:14 AM

Hey,

Ah yes, I just answered the same question here.

This is because Laravel Voyager by default disables the access to Compass when your Laravel App is in production mode (eg. when you've set APP_ENV to production in your .env file).

What you could do is just add the following line in your config/voyager.php:

    'compass_in_production' => true,

That way you will be able to access the compass page as normal!

Hope that this helps!

Best,

Bobby