I need high security for my app, so I have to add security headers for my views. However, I'm not entirely sure I understood the CSP header correctly (specifically its parameters). Is my combination safe and provides high security against XSS? Can I be sure that no one will replace the action in the form and will not perform clickjacking and send the user's data from the form to himself using AJAX?
My CSP: default-src: 'self'; object-src: 'none'; script-src: 'self'; style-src: 'self'; img-src: 'self'; connect-src: 'self'; media-src: 'none'; frames-src: 'none'; sandbox allow-same-origin; child-src: 'none'; form-action: 'self'; base-uri: 'self';
What are additional CSP parameters that I can add to provide better security?
frame-src, notframes-src. – Yogu Nov 21 '22 at 17:25