-
After embedding the form in a wordpress page on a separate site, I keep getting the brower error saying the domain will not allow the browser to display the page if another site has embedded it. Is there a configuration to resolve this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
The simplest way is to delete this line: You can also only allow the @Controller()
export class DashboardController {
@Get('/form/*')
// No `X-Frame-Options` header here
form(@Res() res: Response) {
return res.render('index', {
rendererData: {
homepageURL: APP_HOMEPAGE_URL,
cookieDomain: COOKIE_DOMAIN,
stripePublishableKey: STRIPE_PUBLISHABLE_KEY,
geetestCaptchaId: GEETEST_CAPTCHA_ID,
googleRecaptchaKey: GOOGLE_RECAPTCHA_KEY,
appDisableRegistration: APP_DISABLE_REGISTRATION,
disableLoginWithApple: DISABLE_LOGIN_WITH_APPLE,
disableLoginWithGoogle: DISABLE_LOGIN_WITH_GOOGLE,
verifyUserEmail: VERIFY_USER_EMAIL
}
})
}
@Get('/*')
@Header('X-Frame-Options', 'SAMEORIGIN')
index(@Res() res: Response) {
// ...
}
} |
Beta Was this translation helpful? Give feedback.
-
The changes were made and the instance restarted. Still no difference, is there something else we need to change? |
Beta Was this translation helpful? Give feedback.
Yes, version 0.0.12 fixes it.