0

I just create laravel app with staterkit (breeze) and i am using (react) inertiajs for frontend. I pushed the code to Heroku, it's showing error 419 while register and login. I haven't even started coding. I setup all environment variables on heroku. I try same thing with blade files, but it's working perfectly. How I can push and configure environment variable correctly. Error: 419

Heroku env

APP_DEBUG:                true
APP_ENV:                  local
APP_KEY:                  base64:ISeJ/2xxxc6rKOYnITKlliwslW5LW4Xi1M=
APP_LOCALE:               en
APP_NAME:                 Testing Heroku
APP_URL:                  https://xxx.herokuapp.com
ASSET_URL:                https://xxx.herokuapp.com
BCRYPT_ROUNDS:            12
DB_CONNECTION:            pgsql
DB_DATABASE:              production
DB_HOST:                  host.ccc
DB_PASSWORD:              pass
DB_PORT:                  17093
DB_USERNAME:              admin
LOG_CHANNEL:              errorlog
SANCTUM_STATEFUL_DOMAINS: .xxx.herokuapp.com
SESSION_DOMAIN:           .xxx.herokuapp.com
SESSION_DRIVER:           database
SESSION_LIFETIME:         120
VITE_APP_NAME:            ${APP_NAME}

When I try to run Laravel on localhost, it's work perfectly without any error (error 419). But I start port forwarding or push code on heroku, it's start showing error

2
  • Use sanctum token authentication instead cookie. Or register your custom domain. I think you can’t share cookie with heroku Commented Jan 4 at 21:55
  • How it possible? Commented Jan 6 at 6:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.