Web Security · Middle · Question 19 of 75
Which CSP directive limits where fetch, XHR and WebSocket connections can go?
- ✓Correct answer:
connect-src - 2
form-action - 3
script-src
Explanation
connect-src makes it harder for injected code to send data to an attacker's server, although other channels like images still exist.