Laravel apps in Web Preview - CSRF token mismatch

I’ve been trying to use my Laravel application in a web preview tab while developing it and have noticed anytime I try to submit a page via post I get a 419 error (CSRF token mismatch). If I ‘Open in a new window’ the site behaves correctly and pages post without any CSRF issues.

I’m wondering is this a limitation of inline Web Preview or I have something misconfigured.

I’ve set the trusted proxies to ‘*’ and am forcing https schema in Laravel options which got my site working properly in the ‘New window’ scenario.

Any insight would be great.

Thanks!

I suggest looking into your CORS settings or setting everything to localhost/127.0.0.1 and let the proxy do the work.