> For the complete documentation index, see [llms.txt](https://doc.ozforensics.com/oz-knowledge-ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin.md).

# Web Plugin

При работе с Web SDK ваше приложение обращается к Web Plugin, который работает в контексте браузера. Плагин обменивается информацией с Web Adapter, а тот, в свою очередь — с Oz API.

Образец кода Oz Liveness Web SDK находится [здесь](https://gitlab.com/oz-forensics/oz-liveness-sample-web/-/blob/master/OzLivenessWebSDKSample.html). Чтобы все работало корректно, нужно заменить `<web-adapter-url>` на полученную от нас ссылку на Web Adapter.

В перечисленных ниже образцах кода нужно заменить ссылку `https://<link>.ozforensics.com` в index.html.

* Образец кода для [Angular](https://gitlab.com/oz-forensics/oz-liveness-sample-web-angular)
* Образец кода для [React](https://gitlab.com/oz-forensics/oz-liveness-sample-web-react/-/tree/main)
* Образец кода для [Vue](https://gitlab.com/oz-forensics/oz-liveness-sample-web-vue)
* Образец кода для [Svelte](https://gitlab.com/oz-forensics/oz-liveness-sample-web-svelte)

<figure><img src="https://2041336905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHLoHbtSPFA1Ul7oKM5SC%2Fuploads%2FQdmY7BF3BTg6XrGiibGd%2Fcomponents-public-webplugin.svg?alt=media&amp;token=55e8f4f5-0fa4-4753-ab82-690b18f26df7" alt=""><figcaption></figcaption></figure>

{% content-ref url="/pages/pI37VwrjPzVhdfz1elOf" %}
[Добавление плагина на web-страницу](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin/dobavlenie-plagina-na-web-stranicu.md)
{% endcontent-ref %}

{% content-ref url="/pages/3jgkyOxsn1XMl1mciIkA" %}
[Запуск плагина](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin/zapusk-plagina.md)
{% endcontent-ref %}

{% content-ref url="/pages/JMzNxIqinxeXbxVo050E" %}
[Скрытие и закрытие плагина](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin/skrytie-i-zakrytie-plagina.md)
{% endcontent-ref %}

{% content-ref url="/pages/qQ1oklT48pHEMqs3bQzx" %}
[Локализация: добавление собственного языкового пакета](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin/lokalizaciya-dobavlenie-sobstvennogo-yazykovogo-paketa.md)
{% endcontent-ref %}

{% content-ref url="/pages/dKHlTO6Hfkxhv7zT04qr" %}
[Настройка интерфейса](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin/nastroika-interfeisa.md)
{% endcontent-ref %}

{% content-ref url="/pages/j31ViYYxJyZuIi9XMix4" %}
[Рекомендации по безопасности](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin/rekomendacii-po-bezopasnosti.md)
{% endcontent-ref %}

{% content-ref url="/pages/NgivdXU8VHDA0vaalmIZ" %}
[Совместимость с браузерами](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin/sovmestimost-s-brauzerami.md)
{% endcontent-ref %}

{% content-ref url="/pages/o1uL4diSJ9OFq3JSxqhs" %}
[Лицензирование без использования сервера](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin/licenzirovanie-bez-ispolzovaniya-servera.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
