Could there be a way to cache the CSP-support of a browser in localStorage or something so that the CSP error that is described in the dev console doesn't confuse people once they reload the page? I've seen many people try to blame behaviors they're seeing on the CSP error (even with the "expected" log line that follows it) and think a cache value in localStorage would be sufficient for caching the CSP support level...
cc @epixa
Pinging @elastic/kibana-platform
That's a great idea.
Pinging @elastic/kibana-security
After giving this some thought, I have concerns about doing this. Both cookies and localStorage can be modified by end users, so this would give a user the ability to circumvent the CSP check. This isn't really a problem with csp.strict disabled since it would only impact the appearance of a warning message, but I think it's important that administrators can rely on csp.strict to actually block users on deficient browsers.
What if we only used the local storage cache if csp.strict is disabled?
That's going to be the default soonish anyway isn't it?
What if we only used the local storage cache if csp.strict is disabled?
We could do that, but there are two problems:
That's going to be the default soonish anyway isn't it?
csp.strict is disabled by default now. It will be _enabled_ by default in 8.0.
Any opposition to close this issue given the recent discussion?
No objection from me
Most helpful comment
We could do that, but there are two problems:
csp.strict is disabled by default now. It will be _enabled_ by default in 8.0.