0

My laravel project working fine on 127.0.0.1 but when trying to run on a virtual host I am getting a csrf_token mismatch error.

This is my .conf file code

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName test.local
    ServerAlias test.local
<Directory /var/www/html/test/development/public>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
    DocumentRoot /var/www/html/test/development/public/
</VirtualHost>
2
  • Have you searched SO? Take a look at this answer, maybe it helps you aswell: answer Commented Sep 23, 2021 at 13:53
  • Thanks for your reply but ob_start() didn't work. Commented Sep 24, 2021 at 4:37

0

Your Answer

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