Web Security · Junior · Question 31 of 75

Why must a GET request never change data (for example GET /delete?id=5)?

Explanation

Safe methods like GET should only read. State changes belong in POST, PUT, PATCH or DELETE with CSRF protection.

Further reading

Problem with a question

Web Security · Junior · question 31

Test yourself

Take the Web Security · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz