Skip to content

Add support for unsafely-treat-insecure-origin-as-secure #2506

@linchuanhai

Description

@linchuanhai

I have a site like :"http://192.1681.158:8855/Test2.html" . and I want to use the getUserMedia to visit the web camera on this page. I know it will be prevent by security policy. So in the Cefsharp(WindowsForm) Init method.
I add the code :
CefSetting.CefCommandLineArgs.Add("unsafely-treat-insecure-origin-as-secure", "http://192.1681.158:8855");
CefSetting.CefCommandLineArgs.Add("enable-media-stream", "1");
But I found that it can not working.

I try to set this commandLine args on the chrome.exe shortcut, and it can normal open the webcamera.

so how can i process it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamThese issues require fixing in the Chromium Embedded Framework(CEF) or Chromium.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions