Difference between revisions of "HTML5 - How to start chrome without security (GetUserMedia working)"

From GUILLARD WIKI
Jump to navigation Jump to search
Line 2: Line 2:
<br/><br/>- Open terminal (replace by the required url into the command)
<br/><br/>- Open terminal (replace by the required url into the command)
<syntaxhighlight lang="linux">/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --unsafely-treat-as-secure="http://localhost:8000"</syntaxhighlight>  
<syntaxhighlight lang="linux">/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --unsafely-treat-as-secure="http://localhost:8000"</syntaxhighlight>  
<br/><br/>
<br/>- Or without any security:
Or without any security:
<syntaxhighlight lang="linux"> sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --disable-web-security </syntaxhighlight>
<syntaxhighlight lang="linux"> sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --disable-web-security </syntaxhighlight>

Revision as of 11:34, 15 April 2022

On mac :

- Open terminal (replace by the required url into the command)

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --unsafely-treat-as-secure="http://localhost:8000"


- Or without any security:

 sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --disable-web-security