Entry formalities script installation
Add a container and the script
Section titled “Add a container and the script”<div id="visamundi-infos"></div><script async src="https://embed.visamundi.app/infos.js" data-target="#visamundi-infos" data-lang="en"></script>If you omit data-target, the block is inserted just before the <script> tag.
With no other attribute, the destination is auto-detected and the nationality
is FRA (see Configuration).
Explicit country
Section titled “Explicit country”<script async src="https://embed.visamundi.app/infos.js" data-target="#visamundi-infos" data-country="EG" data-nationality="FRA" data-lang="en"></script>Several countries (e.g. a multi-country tour) render one block each, with a title:
<script async src="https://embed.visamundi.app/infos.js" data-country="TH,VN"></script>Choose the sections
Section titled “Choose the sections”<!-- verdict sentence and vaccines only --><script async src="https://embed.visamundi.app/infos.js" data-sections="visa,vaccines"></script>Several containers
Section titled “Several containers”If data-target matches several elements (for instance a desktop panel and a
mobile accordion that both contain the same section), each of them is filled
with the same data, fetched once.
Single-page apps
Section titled “Single-page apps”Disable the automatic run and call init when your container exists:
<script async src="https://embed.visamundi.app/infos.js" data-manual></script><script> VisamundiInfo.init({ target: '#visamundi-infos', country: 'JP', lang: 'en' });</script>init takes the same options as the data-* attributes, in camelCase
(isoPattern, detectJsonld, apiBase…).
Allowed domains
Section titled “Allowed domains”The service only answers browsers on registered domains (the Origin /
Referer hostname). Any other origin receives 403 origin_not_allowed, with no
data and no CORS headers. Subdomains are covered only when registered with a
wildcard (*.example.com). To add or change a domain, contact Visamundi.
For local development, ask us for an allowed test host: localhost is not
accepted by the production service.
Styling
Section titled “Styling”The default CSS is minimal and scoped to the vm-info classes. Set
data-style="none" to remove it and style the vm-info__* classes yourself.