Mathias Bynens 8/27/2013

Hiding JSON-formatted data in the DOM with CSP enabled

Read Original

This technical article addresses the challenge of embedding server-generated JSON data in the DOM when a strict Content Security Policy (CSP) disallows inline scripts. It compares the traditional inline script method with alternative approaches like Ajax requests and using hidden HTML elements, analyzing their impact on load time and runtime performance under CSP constraints.

Hiding JSON-formatted data in the DOM with CSP enabled

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week