Hiding JSON-formatted data in the DOM with CSP enabled

If Content Security Policy is enabled for protection against cross-site scripting attacks (i.e. the unsafe-inline option is not set), the use of inline s is not allowed. In that case, how can we pass server-generated data to the front-end without negat…


This content originally appeared on Mathias Bynens and was authored by Mathias

If Content Security Policy is enabled for protection against cross-site scripting attacks (i.e. the unsafe-inline option is not set), the use of inline
Print Share Comment Cite Upload Translate Updates
APA

Mathias | Sciencx (2013-08-26T16:32:01+00:00) Hiding JSON-formatted data in the DOM with CSP enabled. Retrieved from https://www.scien.cx/2013/08/26/hiding-json-formatted-data-in-the-dom-with-csp-enabled/

MLA
" » Hiding JSON-formatted data in the DOM with CSP enabled." Mathias | Sciencx - Monday August 26, 2013, https://www.scien.cx/2013/08/26/hiding-json-formatted-data-in-the-dom-with-csp-enabled/
HARVARD
Mathias | Sciencx Monday August 26, 2013 » Hiding JSON-formatted data in the DOM with CSP enabled., viewed ,<https://www.scien.cx/2013/08/26/hiding-json-formatted-data-in-the-dom-with-csp-enabled/>
VANCOUVER
Mathias | Sciencx - » Hiding JSON-formatted data in the DOM with CSP enabled. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2013/08/26/hiding-json-formatted-data-in-the-dom-with-csp-enabled/
CHICAGO
" » Hiding JSON-formatted data in the DOM with CSP enabled." Mathias | Sciencx - Accessed . https://www.scien.cx/2013/08/26/hiding-json-formatted-data-in-the-dom-with-csp-enabled/
IEEE
" » Hiding JSON-formatted data in the DOM with CSP enabled." Mathias | Sciencx [Online]. Available: https://www.scien.cx/2013/08/26/hiding-json-formatted-data-in-the-dom-with-csp-enabled/. [Accessed: ]
rf:citation
» Hiding JSON-formatted data in the DOM with CSP enabled | Mathias | Sciencx | https://www.scien.cx/2013/08/26/hiding-json-formatted-data-in-the-dom-with-csp-enabled/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.