I have a plugin for my app that users can implement in their website that contains a form. The problem is that I get TokenMismatchException
when the form is submitted. From all research I've done I can see is a protection for cross-origin from Laravel.
I know I can disable it, but I don't know how I will protect the form after that?
Have any of you came across this issue? What is the best practice?
Thank you
Note: I've noticed that if the user has previously visited the original website and then goes to the website where the iframe is included, the Exception is not throwing anymore.