Implementing CSP for my web application is a top priority. Here's the policy I have in mind:
"default-src 'self' gap: cdvfile;"
I rely on google closure for my javascript needs. However, it seems that without javascript optimization, my script gets blocked due to this issue:
goog.json.parse uses eval()
To resolve this, I can compile my code using closure compiler, which eliminates the use of eval() thanks to JSON.parse.
While I understand the workaround involving sha256-.....
or nonce=....
, I'm curious if there are any alternative methods to utilize CSP without relying on sha..
or nonce..
.