Back

Laravel Form Post issue 419 from AWS ES hosting subdomain


Hello,

I have used AWS server and Laravel 5.5. So main domain point to main ec2 instance, and sub domain pointing to sub ec2 instances.

I have Project that require to manage and multiple subdomain and main domain. i.e Main Domain is testdemo.com and others are xyz.testdemo.com, abc.testdemo.com etc.

In Subdomain I have a single file, and put it one line as include to main domain main file url. But When I do Form Post from subdomain, it gives me error 419 (token mismatch error).I have tried many things. tokenmismatch error solution (included token inside form).

Please check below image that is in subdomain :

<?php

Enable Error Reporting and Display:

error_reporting(~0); ini_set('display_errors', 1); $url = 'https://www.testdemo.com/abc'; include($url); ?>

Can any one help me out?


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us