如何在 Nuxt.js/Vue.js 应用程序中设置 X-Frame-Options

Emi*_*jer 5 javascript x-frame-options vue.js nuxtjs

我想在标签元素内加载网页iframe

例如: <iframe src="https://www.google.com/" title="Google"></iframe>

这给了我这个错误: Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

如何在 Nuxt.js 应用程序(或 Vue.js - 它应该是非常相似的配置)中解决这个问题?我尝试使用 nuxt-helmet,但根据 dosc,我可以使用DENYSAMEORIGIN,因为ALLOW-FROM的浏览器支持有限。