← All tasks
🧮
Intermediate

Write a Content Security Policy Header

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the PHP header() call that sets a Content-Security-Policy restricting scripts to the site's own origin.

Scenario

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