%% generate tags start %% #software-engineering %% generate tags end %% #software-engineering/nextjs by default, your website on vercel should be iframe embeddable. If not, you might need to do this. %% original: [node.js - How to set X-Frame-Options header without a custom server in Next.js? - Stack Overflow](https://stackoverflow.com/questions/62454214/how-to-set-x-frame-options-header-without-a-custom-server-in-next-js) %% Without a custom server, this could be achieved by using [custom headers](https://nextjs.org/docs/api-reference/next.config.js/headers) in your `next.config.js`. ```js // next.config.js module.exports = { async headers() { return [ { source: '/(.*)?', // Matches all pages headers: [ { key: 'X-Frame-Options', value: 'DENY', } ] } ] } } ```