Iframe - HedgeDoc not allowed

Mon serveur YunoHost

Matériel: VPS acheté en ligne
Version de YunoHost: 4.3.6.2
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

Bonjour,

Je souhaiterais pouvoir intégrer des iframe dans mon site depuis HedgeDoc : pad.Domaine.Tld. Sur ce site il explique quelque chose mais je ne comprend pas comment rentrer la valeur true. Configuration - HedgeDoc

Je pense que le fichier que je dois modifier est : var/www/hedgedoc/lib/config/environnement.js mais je ne sais pas comment faire …

Avez-vous une solution ?

Merci d’avance :smiley:

the config file: /var/www/hedgedoc/config.json
after ligne 29 add "allowFraming": true,
then restart systemd service

Thanks for you response but still not working.

I had : allowFraming": true,

To restart systemd like you say i did a lot :

systemctl restart hedgedoc

systemctl restart nginx

systemctl daemon-reexec

Reboot my VPS

and still not working … do you have other idea ?

I have no idea. You can ask support directly to Hedgedoc Matrix chanel: https://matrix.to/#/#hedgedoc:matrix.org

Oh,CORS, again.
In your hedgedoc nginx config, add

add_header 'Access-Control-Allow-Origin' 'https://pad.Domaine.Tld';

To allow any website to embed :

add_header 'Access-Control-Allow-Origin' '*';

Restart nginx

Hi, did it work for you?

No isn’t, i change my idea. I put the app in the main domain and it’s work

Thanks for your time