I have an Iframe embedded inside a website. Both are on different domains but both are owned by me. I am trying to pass a query param to iframe src.
<iframe
id="iframe"
title="Survey"
allowtransparency="true"
allowfullscreen="true"
src=https://example.com/web-response/63760b884ec0a674d3cc5b04?isEmbedded=true
frameborder="0"
style="min-width: 100%; height: 100vh; border: none"
>
</iframe>
Notice the query param isEmbedded. But I am unable to access this query param in my child website(Next.js).
In my Next.js application I am using next router to access this param.
const {isEmbedded} = router.query
It is coming as undefined.
Is it possible to pass queary params cross-domain? If yes than what can be a possible way.