Web Security · Middle · Question 19 of 75

Which CSP directive limits where fetch, XHR and WebSocket connections can go?

Explanation

connect-src makes it harder for injected code to send data to an attacker's server, although other channels like images still exist.

Further reading

Problem with a question

Web Security · Middle · question 19

Test yourself

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

Take this quiz