Skip to content

Commit b3d01be

Browse files
authored
explain iframe configuration (#288)
1 parent 365dedb commit b3d01be

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

source/publish/customization/iframe.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ It's possible to embed Lizmap in another webpage by using a iframe. We suggest y
1212

1313
For instance, use this URL : ``/index.php/view/embed/?repository=my_repo&project=my_project``.
1414

15+
Configuration
16+
-------------
17+
18+
To prevent security issues, you need to explicitly declare websites allowed to embed your Lizmap iframe.
19+
Fill the :guilabel:`List of websites allowed to embed iframe` field that can be defined for each the repository in :guilabel:`Maps management`.
20+
21+
.. warning::
22+
23+
Ensure the ``referrer`` is provided to the iframe (you can use the ``referrerpolicy`` attribute : ``<iframe src="....." referrerpolicy="strict-origin-when-cross-origin" ></iframe>`` )
24+
1525
Example
1626
-------
1727

0 commit comments

Comments
 (0)