Gitbook embed feature #504
Answered
by
SamyPesse
sheiquezakir
asked this question in
0. General bugs and questions
-
Ask a question, start a conversation, or make an annoucementIs it possible to embed Gitbook pages into my react application via IFrame? |
Beta Was this translation helpful? Give feedback.
Answered by
SamyPesse
Mar 7, 2024
Replies: 2 comments 6 replies
-
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
SamyPesse
-
Alright, now that I understand what's going on, this issue occurs when running from an HTTP server without TLS, as mentioned by Samy. The headers require a secure connection, so you need to have SSL. You can get this working by generating a self-signed SSL certificate and setting up your local server to use it. I managed to get it working using this method. Best, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, content published publicly on GitBook can be embedded into an iframe. Our Content-Security-Policy are configured to allow this in a safe way (no cookies or credentials can be accessed as none is stored in public content).
Quick example with our own docs: