Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny' #3933

Closed
opened 2026-02-05 07:54:14 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @namannj46 on GitHub (Jul 26, 2023).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I have integrated Bookstack in our Website with using iframe. so bookstack is opening through iframe but when i tried to login on bookstack through google login it is showing the error.
accounts.google.com is refused to connect

When i inspect the code and check the error it is showing :
Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'

So please help how i can resolve this error on Bookstack

Exact BookStack Version

v23.05.2

Log Content

No response

PHP Version

No response

Hosting Environment

ubuntu 22.04

Originally created by @namannj46 on GitHub (Jul 26, 2023). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I have integrated Bookstack in our Website with using iframe. so bookstack is opening through iframe but when i tried to login on bookstack through google login it is showing the error. **accounts.google.com is refused to connect** When i inspect the code and check the error it is showing : **Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'** So please help how i can resolve this error on Bookstack ### Exact BookStack Version v23.05.2 ### Log Content _No response_ ### PHP Version _No response_ ### Hosting Environment ubuntu 22.04
OVERLORD added the 🐕 Support label 2026-02-05 07:54:14 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 26, 2023):

This is a security control that Google are setting, not really something that can be worked around from a BookStack point of view. Many websites will block use in an iFrame due to security concerns.

@ssddanbrown commented on GitHub (Jul 26, 2023): This is a security control that Google are setting, not really something that can be worked around from a BookStack point of view. Many websites will block use in an iFrame due to security concerns.
Author
Owner

@namannj46 commented on GitHub (Jul 26, 2023):

Can you suggest the possible way to do google login inside the iframe ?

@namannj46 commented on GitHub (Jul 26, 2023): Can you suggest the possible way to do google login inside the iframe ?
Author
Owner

@ssddanbrown commented on GitHub (Jul 26, 2023):

No, not really anything with Google direct.
You could maybe find an alternative auth platform, which does not prevent (or can be hacked to allow) iframe use, that can use google as an upstream auth provider itself, then use that with BookStack.

These are not paths I'd suggest or can recommended further on though, these limits are in place for security, and iframes as a bunch of troubles (They can also complicate cookies and visuals).

@ssddanbrown commented on GitHub (Jul 26, 2023): No, not really anything with Google direct. You could maybe find an alternative auth platform, which does not prevent (or can be hacked to allow) iframe use, that can use google as an upstream auth provider itself, then use that with BookStack. These are not paths I'd suggest or can recommended further on though, these limits are in place for security, and iframes as a bunch of troubles (They can also complicate cookies and visuals).
Author
Owner

@ssddanbrown commented on GitHub (Aug 2, 2023):

Since there's been no follow-up I'm going to close this.

@ssddanbrown commented on GitHub (Aug 2, 2023): Since there's been no follow-up I'm going to close this.
Author
Owner

@ForkInABlender commented on GitHub (Feb 25, 2024):

welp, then the html used isn't the problem then and the issue is not fixed.

@ForkInABlender commented on GitHub (Feb 25, 2024): welp, then the html used isn't the problem then and the issue is not fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3933