Skip to content

Instantly share code, notes, and snippets.

@CTimmerman
Last active August 29, 2015 14:14
Show Gist options
  • Save CTimmerman/cc537c57a64af6c09780 to your computer and use it in GitHub Desktop.
Save CTimmerman/cc537c57a64af6c09780 to your computer and use it in GitHub Desktop.
jQuery 2 not working in IE11? It might be your old intranet policy.
<FilesMatch "\.(htm|html|php)$">
<IfModule mod_headers.c>
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
</IfModule>
</FilesMatch>
<!doctype html>
<html>
<head>
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<remove name="PHP_via_FastCGI" />
</handlers>
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=edge" />
</customHeaders>
</httpProtocol>
</system.webServer>
<system.web>
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
@CTimmerman
Copy link
Author

.htaccess for Apache from http://www.validatethis.co.uk/news/fix-bad-value-x-ua-compatible-once-and-for-all/

web.config for IIS. Gist insists on treating .config files as Text instead of XML.

The HTML is for individual pages in case the folder config approaches are too broad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment