Skip to content
Advertisement

Tag: csrf

how does this protect against csrf attacks?

I’m working on making my opencart project and used This Article to write custom apis. It uses this block of code to do a security check against csrf attacks: My question is how is that going to protect against csrf attacks according to the article? It seems it just sets Access-Control-Allow-Origin header to whatever domain the request is coming from

Laravel submitting form gets page expired

So i have a very basic controller located at : app/Http/Controllers/RentalRequestController Then in my web.php i have the following: And then i have the following form in my view: Now when i submit the form it redirects me to a page saying: Can anyone tell me what ive done wrong? Answer You should add: inside <form> element for example like

How to disable csrf in symfony?

I used the code below and it has csrf too. But how can I disable its csrf? I searched and Disable CSRF token on login form did not help, as there createFormBuilder() is not used in my case below, so what should I do? Answer

Advertisement