Disable xss auditor


#1

So I need to disable the XSS Auditor of Chromium at least for a specific webview element, but I did not find a way to accomplish this.
What I have tried so far, without success:

Setting the command line switch “disable-xss-auditor” according to https://peter.sh/experiments/chromium-command-line-switches/. It seems that only those listed here work:
https://github.com/electron/electron/blob/master/docs/api/chrome-command-line-switches.md Is this true?

Disabling websecurity. Since I create webview elements and insert them into the DOM programmatically I do this like:

const wv = document.createElement("webview");
wv.disablewebsecurity = true;

But this does not work either…

So how can I disable the XSS Auditor?
Are those command line switches listed in thelink above the only ones that can be used?


#2

Ok nvm, the issue was somewhere else, actually the command line switch worked :slight_smile: