We want to reference a page from Sitecore with a Sitecore Forms form inside it to an external site. However, when I did so. I encountered xxx things:
- The iframe threw an error regarding the
X-Frame-Options
- To fix this, I added the
frame-ancestors 'self' https://external.site
in the header
- To fix this, I added the
- Once this was resolved, every time I blur from the field it shows an alert popup saying
Your session has expired. Please refresh the page
- When I tried submitting the form, the form failed to submit. Upon checking, I discovered that the form submit returned a
Message: The required anti-forgery cookie "__RequestVerificationToken" is not present.
message.
So the question is: is it really possible to reference a Sitecore Form in an iframe? If yes, which area of the environment should I look for in order to resolve the issues #2, #3 above?