mardi 16 octobre 2018

Two instances of Laravel on local server mess up tokens

I'm developing an application that is split between two Laravel apps talking to one database. It works fine in production, but when I run the apps on my local machine I get csrf and login problem.

What happens is that if you log in to app #1 (that produces the content) and then open up app #2 (that displays the content) you will get logged out of app #1. Or ir seems the csrf token is messed up.

I've tried running one of the apps on wamp and the other one through artisans server. Also been mixing the ports around without results.

Both apps are situated within the wamp www folder.

Does anyone know of this problem? Is there a known fix, setup or workaround that lets you run two Laravel apps on the same machine without any token and session conflicts?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire