Next.js Discord

Discord Forum

Allow Iframe from all

Unanswered
Almond stone wasp posted this in #help-forum
Open in Discord
Almond stone waspOP
Hello, I'm making some part of my app to public, and it should be iframe-able from any website. How can I make it? currently it rejects all iframe requests I tried to set
{
  key: 'X-Frame-Options',
  value: 'ALLOW-FROM *',
}

and
{
  key: 'Content-Security-Policy',
  value: 'frame-ancestors *;',
}

but it didn't work. How can I make my route '/publicRoute' and all its slugs accessible via iframe,
I appreaciate any help

0 Replies