> For the complete documentation index, see [llms.txt](https://help.glpi-project.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.glpi-project.org/faq/fr/glpi/iframe.md).

# Iframe

***

### Qu'est-ce qu'un iframe ?

Un iframe (pour inline frame) est un élément HTML qui permet d'intégrer un document HTML séparé dans une page web. En d'autres termes, c'est une sorte de « fenêtre » dans une page web qui affiche un autre contenu ou un autre site web.

{% hint style="success" %}
Exemple de syntaxe d'iframe

`<iframe src='https://www.example.com' width='600' height='400'></iframe>`
{% endhint %}

***

### Comment générer un iframe dans GLPI ?

L'exemple le plus courant concerne les tableaux de bord. Pour générer un iframe pour les tableaux de bord, allez dans **`Assistance`** > **`Tableaux de bord`** >. Sélectionnez le tableau de bord que vous souhaitez intégrer et cliquez sur (en haut à droite de l'écran). Dans la boîte qui s'ouvre, copiez la partie **`Iframe`** et intégrez le code (qui devrait ressembler au code ci-dessous) dans votre site

```
<iframe src='https://www.myinstance.com/front/central.php?embed&dashboard=central&entities_id=0&is_recursive=1&token=5b04t6hhnbf-4f70-6g12-af13-12gdefdf5v8d' frameborder='0' width='800' height='600' allowtransparency></iframe>
```

***

### Les iframes peuvent-elles être utilisées avec GLPI Cloud (privé ou public) ?

Pour des raisons de sécurité, nous n'autorisons pas l'iframe par défaut (côté backend) pour les versions Cloud.

Il est tout à fait possible de l'ouvrir, mais il y a plusieurs choses à savoir

{% hint style="danger" %}
**Attention**

* Cette ouverture concerne **l'intégralité de GLPI**
* Vous vous exposez à des risques de **phishing**
* Nous ne garantissons pas que toutes les fonctionnalités de GLPI fonctionneront dans ce contexte
* En contexte OauthSSO, l'iframe ne fonctionne pas
* Pour limiter les risques, nous vous demanderons de nous fournir les URLs dans lesquelles le Frame sera intégré
  {% endhint %}

L'utilisation des iframes peut exposer le site à des vulnérabilités si le contenu GLPI n'est pas correctement sécurisé. Un attaquant pourrait injecter du code malveillant dans l'iframe, affectant les utilisateurs ou compromettant les données.


---

# 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://help.glpi-project.org/faq/fr/glpi/iframe.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.
