Interview practice question
Reducing risk from third-party scripts
Frontend Engineering · Frontend System Design · Intermediate
Your site loads a dozen third-party scripts for analytics, ads and chat. How would you reduce the security risk?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Inventory and remove unnecessary scripts.
- CSP allowlist of sources.
- SRI for versioned files.
- Sandboxed iframes for widgets.
- Keep sensitive pages free of third parties.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.