Web Site is Not Loading in Chrome 'X-Frame-Options' to 'sameorigin' error

My website is not loading in chrome I get this error when I inspect webpage

"Refused to display ‘Turn cookies on or off - Computer - Google Account Help’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.

the problem is I have NO htaccess file on my site so I can not set X-Frame-Options’ to ‘sameorigin’.

Anyone have the same problem?

It says google set it. So unless you are employee of Google, you can’t change the htaccess rules for support.google.com. (Plus, you would need approval).

And to set htaccess file rules, create one offline and then upload that htaccess file inside the htdocs directory.

What’s your site url?

If you open your site in Iframe, it’ll refuse to display, It’s normal because of security system.
Even if you enable same origin that won’t work again.

2 Likes

In this case the X-Frame-Origin header is generated by Google’s support page. So you can’t change that. Although, if you wanted to, you could just create a file with the name .htaccess and add the line for it. A .htaccess file is not a special file which request a system tool to generate.

The interesting case is the URL you’re referring to, which is the Google Cookies URL. You are redirected to this page if you fail this security system:

https://infinityfree.net/support/javascript-error-using-api-or-mobile-android-app/

Specifically, this means your browser did not accept the cookies generated by the security challenge. So please make sure your browser accepts cookies, and there isn’t some plugin, network block or virus scanner preventing that from working correctly.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.