Kunal Mehta<p>New tool: resource-rewriter</p><p><a href="https://lib.rs/crates/resource-rewriter" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lib.rs/crates/resource-rewrite</span><span class="invisible">r</span></a></p><p>It takes a single HTML file with inline styles and scripts and rewrites them to be compatible with a more restrictive Content-Security-Policy (and a few other things).</p><p>I still have a few more things I'd like to add in, like automated CSP generation, a WASM playground and maybe handling style= attributes. A blog post will follow once that's in place :)</p><p><a href="https://wikis.world/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> <a href="https://wikis.world/tags/ContentSecurityPolicy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ContentSecurityPolicy</span></a> <a href="https://wikis.world/tags/CSP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSP</span></a></p>