How to show the enketo in a iframe

Hello everyone, I am having a problem with showing a enketo to a iframe in angular the error i get its Refused to display 'https://my-central-api-url/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

I try to search on web for a solution but i didnt find one, can any one help me?

Just some pointers, not a direct solution — this is because of a mechanism that's called Content-Security Policy.
Assuming you're running Central using the Docker setup, you (or someone else who's comfortable around these things) could endeavour to edit the configuration of the frontend webserver (nginx) that serves Enketo to strip/edit/add the HTTP headers so that it tells to browsers that your "embedder origin" is allowed to embed.

1 Like

See ODK webform to display on my website - #4 by yanokwa for instructions on embedding Enketo in an iframe.

1 Like