Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 440814

Summary: Allow cross-origin access to web fonts
Product: Community Reporter: Christopher Guindon <chris.guindon>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nobody, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 440663    

Description Christopher Guindon CLA 2014-07-30 15:46:20 EDT
I am getting the following error in the console if I try to load fonts for Solstice on a different domain. I am using the CSS from eclipse.org for the new theme of planeteclipse.org

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.eclipse.org/eclipse.org-common/themes/solstice/public/fonts/fontawesome-webfont.woff?v=4.1.0. This can be fixed by moving the resource to the same domain or enabling CORS.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.eclipse.org/eclipse.org-common/themes/solstice/public/fonts/fontawesome-webfont.ttf?v=4.1.0. This can be fixed by moving the resource to the same domain or enabling CORS.

The solstice theme requires font-awesome.

Can we allow cross-origin access to web fonts? 

Apache config example:

<IfModule mod_headers.c>
    <FilesMatch "\.(eot|otf|tt[cf]|woff2?)$">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
</IfModule>
Comment 1 Eclipse Webmaster CLA 2014-08-22 14:10:44 EDT
Fixed.

-M.