What is cross-site request forgery (csrf)? How is rails protected against it?
Answer / Aakash Rastogi
Cross-Site Request Forgery (CSRF) is an exploit that tricks the victim into making unwanted requests to a web application. Rails provides protection against CSRF by automatically including a CSRF token in all POST requests and forms. This token is generated and verified on both client and server sides.
| Is This Answer Correct ? | 0 Yes | 0 No |
Do you know what is “yield” in ruby on rails?
What are rails validation used for?
Can you list out what can rails migration do?
What is the flash?
Why RubyonRails?
What is action cable?
How are observers and callbacks different from each other?
Do you know what is rake in rails?
Mention the differences between the observers and callbacks in ruby on rails.
What are the different types of association relationships that exist?
Explain rails migration.
how many types of callbacks available in ror?