DEV Community

Discussion on: Using WebAssembly With CSP Headers

Collapse
 
aminnairi profile image
Amin

Interesting. Thanks for your answer. Do you think this could be something useful in terms of security to have (completely lock the console) in a hypothetical future or is it really not that useful? Sorry for my question I gotta take the chance while I get you haha!

Thread Thread
 
aaronpowell profile image
Aaron Powell

Completely disabling the browser dev tools isn't really viable; a web page doesn't have that level of control over the browser.

CSP is a way to limit the "damage" someone can do to themselves using the dev tools but there's only so much you can do to protect people from themselves.

There's other things you can do to encourage people to not do stuff at the console, check out this post I wrote.