Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 587 Bytes

cors.md

File metadata and controls

9 lines (6 loc) · 587 Bytes

Cross origin stylesheets

In order to work properly the prolyfill needs access to the stylesheets on the page. If a stylesheet is served from a different domain it needs to have a CORS header, e.g. Access-Control-Allow-Origin: *. You can find more information about how to enable CORS on your server at enable-cors.org.

For better performance it’s also recommended to use the attribute crossorigin="anonymous" for cross origin <link> tags:

<link crossorigin="anonymous" href="http://example.com/styles.css" rel="stylesheet">