Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does CSP stand for?
Think of website security.
What is the primary use of CSP?
Consider preventing unauthorized scripts.
What is the main function of a Content Security Policy (CSP)?
Think about preventing bad scripts.
True or False: CSP allows every script to execute as long as they come from the same domain.
Consider additional safety precautions.
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.
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.
Look at the areas where permission is too broad.
4 more questions in this section. Enroll free to practise them all.
Enroll free