mrkarma4ya
1 week ago

Can post requests set in route be sent from a different website?

Posted 1 week ago by mrkarma4ya

If I have a form that sends a POST request to mywebsite.com/formsubmit and my route file has

Route::post('formsubmit', [email protected]);

Can a different website (say yourwebsite.com) have something like

<form method='POST' action='mywebsite.com/formsubmit'>
...
...
</form>

store data into mywebsite.com's database?

Does csrf prevent these?

Please sign in or create an account to participate in this conversation.