Practice - Content Security Policy (CSP)
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What does CSP stand for?
💡 Hint: Think of website security.
What is the primary use of CSP?
💡 Hint: Consider preventing unauthorized scripts.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is the main function of a Content Security Policy (CSP)?
💡 Hint: Think about preventing bad scripts.
True or False: CSP allows every script to execute as long as they come from the same domain.
💡 Hint: Consider additional safety precautions.
Get performance evaluation
Challenge Problems
Push your limits with advanced challenges
Given a list of external sources, create a CSP header that only permits scripts from those sources: https://example1.com and https://example2.com while blocking all others.
💡 Hint: Start by identifying your trusted sources.
Analyze a sample CSP header that allows many sources; discuss how it can potentially create vulnerabilities and suggest improvements.
💡 Hint: Look at the areas where permission is too broad.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.