Page 1 of 1

ERR_BLOCKED_BY_XSS_AUDITOR

Posted: Wed Dec 12, 2018 8:46 am
by skip
Hi, My opencart 2.2.0.0 on click Save button after ediiting product or information logout from admin panel and show error in browser:

This page isn’t working Chrome detected unusual code on this page and blocked it to protect your personal information (for example, passwords, phone numbers, and credit cards).
Try visiting the site's homepage.
ERR_BLOCKED_BY_XSS_AUDITOR

I think this happen after my hosting provider update php version but not sure. Where to find problem , thanks ?

Re: ERR_BLOCKED_BY_XSS_AUDITOR

Posted: Wed Dec 12, 2018 9:42 am
by ocmta
This is a Chrome bug, not an openCart issue. Try using different browser, or this: edit file admin/controller/startup/startup.php and add this line anywhere inside function index:

Code: Select all

$this->response->addHeader('X-XSS-Protection:0');

Re: ERR_BLOCKED_BY_XSS_AUDITOR

Posted: Thu Dec 20, 2018 10:45 am
by skip
Problem is same in IE and other browser - when I click on SAVE opencart logout automaticaly and show message "cannot find page"

I wass try add funkction and code looks like this:
<?php
class ControllerStartupStartup extends Controller {
public function index() { $this->response->addHeader('X-XSS-Protection:0');
// Settings
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "setting WHERE store_id = '0'");

but problem is still there. did I paste funkction on right place ? There is only one public function index() in this file.