alexwforsythe / code-blocks

Syntax highlighting for Google Docs
https://www.alexwforsythe.com/code-blocks/
MIT License
702 stars 89 forks source link

Blocked by X-Frame-Options-policy #140

Open iloominaty opened 4 years ago

iloominaty commented 4 years ago

I cant open the addon in firefox.

ive turned off my adblockers and checked for any blocked lookups in my pihole DNS.

bilde

iloominaty commented 4 years ago

Translation, "Firefox prevents this page from loading in this context because the page has a X-Frame-Options-Policy which doesnt allow it."

alexwforsythe commented 4 years ago

Thanks for submitting the issue! I believe the X-Frame-Options-Policy is set by Google Apps Script via DocumentApp.getUi().showSidebar(ui), so I wouldn't expect it to break with a common browser like Firefox. Is this still an issue for you? If so, Does your JavaScript console display any errors when you open the document?

SamarthMP commented 2 years ago

I have the same problem in Opera GX image image

pablorm296 commented 2 years ago

Hi there! I have the same problem. I'm using Firefox 104.0.2 (64-bit) (canonical-002 - 1.0). My dev console shows the following error:

The loading of “https://drive.google.com/accounts?authuser=2&continueUrl=https://docs.google.com/macros/u/2/d/MjktTJffNRMwWR3JRnHN7meMuMqcyqBHD/iframedAppPanel?eei%3DACZUsOctEq2E6jdQfiJhM3eMkiVCY0kJz7qb4z5p4aQahof8yTRAYyUDAeiBUTeL-ZXVNJ4M9BGKc4pwRR0AvItBQmWlgZV9t-aMXeBJNtVP-h6Cu0qrMp2VCXutL6TMoniZ9qPfqqZdbRmcWwfww7Bw6Qxj_h22S7f4NoPiEO6i3cg7kiAVhng%26mid%3DACjPJvERaxj2lV2NohXKuDllzveQOopN8o7tTIu4jvUk0nnm2kdjaXhbmVl5ov3XX1LNEOi0d45wwldH5cHmVgVibJZMxBlYNNTje8FkBhCfJc51rbQ%26mid%3DACjPJvF7O08WtMiUjAQZ6l4Is8wmpI6iyeZYg4dCTVCtAdLXV7Ow2SKneY0-8vtNJywll5kZ6PDAgXvZbqZ9iFwb98aA0m5kwp2aM2H1cWYFq6oyPXvREh_dpy7DjW1rW7VfNqjnkyIwWg&ddrp=1#” in a frame is denied by “X-Frame-Options“ directive set to “SAMEORIGIN“.

In the same system, the problem is not present by using Google Chrome.

Korb commented 4 months ago

Same:

Firefox Can’t Open This Page. To protect your security, drive.google.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window. Report errors like this to help Mozilla identify and block malicious sites.

Mozilla Firefox 127.0b9 (64-bit)

"Website will not allow Firefox to display the page if another site has embedded it"