Write the PHP header() call that sets a Content-Security-Policy restricting scripts to the site's own origin.
You're mitigating XSS risk by restricting where scripts can be loaded from.
Ready to try it?
Create a free account and subscribe to take "Write a Content Security Policy Header". Earn 90 XP and track your internship progress.
Already have an account? Sign in