Create restrictive Content-Security-Policy header rules.
Test changes with a report-only policy before enforcing them.
Add your input or run the example.