-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngCsp example in docs doesn't work #16270
Comments
Is that because we are not turning CSP on via the server for that page? |
I actually don't know what that means 😱 |
OK, so I actually took a look at the example :-) So this example is rather misleading, IMO, since the If we could setup the example so that the browser really does turn on CSP (https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP#Using_CSP) then it might make more sense. |
Ah, that makes sense: I assume this was lost during some docs migration. However, the example was not rendered / tested because the indentation was wrong, so it's unclear if this actually worked. |
See https://code.angularjs.org/snapshot/docs/api/ng/directive/ngCsp#examples
You can do eval even though it should be disallowed. The e2e tests don't fail though.
The text was updated successfully, but these errors were encountered: