Adding Content Security Policy with Next.js + styled-jsx

Author: KarthikeyanRanasthalaCreated Jul 25, 2020Updated Feb 18, 2025

Do you want to request a feature or report a bug?

Yes, Improve documentation. Please add relevant details/steps on adding nonce for Content Security Policy with styled-jsx + next.js As next.js handles styled-jsx internally, the current mentioned method in the doc is not applicable. This is a major concern as all the next.js apps using styled-jsx have to add 'unsafe-inline' in the CSP. I would request the maintainers to take up this on priority.