0
I ran W3C HTML Validator to check for any problems and this is the only error I have: //prntscr.com/gj1z22
"X-UA-Compatible HTTP header must have the value IE=edge, was IE=Edge,Chrome=1"
I didn’t even have any headers compatible with X-UA. After I found this error, I did my research: 1, 2, //www.sitepoint.com/community/t/how-to-Solve-http-equiv-validation-error-from-w3c-Validator/178466; changed the settings of . htaccess and even put some PHP code in my headers to display the correct meta tag as recommended in this forum, but still, the error continues
PHP header:
if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
header('X-UA-Compatible: IE=edge');
.htaccess:
<FilesMatch "\.(htm|html|php)$">
<IfModule mod_headers.c>
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge" env=ie
</IfModule>
</FilesMatch>
Why is this happening? I note that I did not have any such header the first time I received this message. All the solutions I found in this forum did not work.
Hello John, the answer helped you, there is some doubt about her?
– Guilherme Nascimento