Got “you are using unsupported command-line flag: --disable-web-security. Stability and security will suffer” error

元气小坏坏 提交于 2019-12-06 03:52:21

问题


I got this below error while using Selenium RC for Google Chrome

you are using unsupported command-line flag: --disable-web-security. Stability and security will suffer. I don't know whats the issue with chrome.


回答1:


Reference code for flag --disable-web-security

// Don't enforce the same-origin policy. (Used by people testing their sites.)

const char kDisableWebSecurity[] = "disable-web-security";

It disallows cross scripting code, what are you doing on selenium RC?




回答2:


In feb 2013, someone (expert user/dev "PhistucK"; 1498 Posts as of 01/2014) said on the chrome-discuss gougle-group:

No, it [the notification] cannot be switched off. You can compile Chromium by yourself and remove the code that shows it.



来源:https://stackoverflow.com/questions/14215382/got-you-are-using-unsupported-command-line-flag-disable-web-security-stabil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!