# Can't load camera from non-SSL host

The Chrome / Edge / Chromium browsers will not allow access to media devices (camera / microphone) without SSL enabled.

Possible solutions include switching to https, accessing the site from <http://localhost>, or enabling the `unsafely-treat-insecure-origin-as-secure` browser switch.\
\
The browser flag, which works with Chromium-based browsers, can be accessed from: ***chrome://flags/#unsafely-treat-insecure-origin-as-secure.*** Specify the hostname and the IP address that you will be accessing, such as <https://192.168.1.15:8080>. Enable the option, and then restart the browser.

<figure><img src="/files/5IWasNzHmcPVfYYwDk5N" alt=""><figcaption><p><em><strong>#unsafely-treat-insecure-origin-as-secure</strong></em></p></figcaption></figure>

More advanced users can try using **openssl** to generate self-signed certificates, and using them with their local webserver to enable SSL, assuming you have access to the webserver.

```
openssl req  -nodes -new -x509  -keyout key.pem -out cert.pem
```

<figure><img src="/files/M5cxpheMcY1XKnwikd7E" alt=""><figcaption></figcaption></figure>

If you can access the site via <http://localhost>, or <http://127.0.0.1>, that may work also. This could be possible if hosting VDO.Ninja locally, and accessing it via a local webserver. If you have Python installed, you could get away using it to host VDO.Ninja in this way.

```
git clone https://github.com/steveseguin/vdoninja
cd vdoninja
python -m http.server 8000
```

When accessing VDO.Ninja in this way, make sure the remote computer that may also be accessing VDO.Ninja is using the same "salt". To debug this, you can try adding `&salt=vdo.ninja` to all the VDO.Ninja links, as that will manually assign all the links to use the same salt. The salt is used in the encryption process for site isolation and increased privacy/security when not using the official VDO.Ninja deployment.<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vdo.ninja/common-errors-and-known-issues/cant-load-camera-from-non-ssl-host.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
