: Why does the internet think Microsoft Edge is Google Chrome? I am currently using Microsoft Edge. Edge is the new Internet Browser from Microsoft. I tried running a Unity3D Program in Edge,
I am currently using Microsoft Edge. Edge is the new Internet Browser from Microsoft.
I tried running a Unity3D Program in Edge, and it gave me the error that it was not available in Chrome:
Then I tried running a Browser Test at BrowserScore.com, and the test gave me the results for the Chrome browser:
Why?
More posts by @Shelton105
2 Comments
Sorted by latest first Latest Oldest Best
Because Microsoft Edge presents a User-Agent string that contains the word Chrome. And, for that matter, Safari.
Check out whatsmyuseragent.com/ and you'll see something like this:
(Emphasis mine)
This is deliberate on Microsoft's behalf to fool naïve user-agent checks into thinking that it's not Internet Explorer. Which it isn't.
The answer is simple and here is an oversimplified example:
// Your browser is identifying itself as this
$ua_string = 'EDGE';
// The website logic is this
if($ua_string === 'IE')
{
echo 'You are using IE';
}
elseif($ua_string === 'FIREFOX')
{
echo 'You are using Firefox';
}
else
{
echo 'You are using Chrome, and we don't support that.';
}
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.