2 Replies Latest reply on Nov 24, 2013 12:33 AM by it2000

    CDN - how can I set Access-Control-Allow-Origin?


      Hi there


      We would like to use the external resource caching option, which automatically designates (amongst other files) web fonts and CSS as cacheable by serving them under the secondary hostname that we route through a CDN... in order to support serving fonts from the alternate hostname we need to set Access-Control-Allow-Origin in the headers (eg via .htaccess) - I'm not clear on where or how to do this on an on-prem app server, does anyone have any experience with this, where should we add the settings?


      The following example settings are proposed by the CDN vendor:

      <IfModule mod_headers.c>

        <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css)$">

          Header set Access-Control-Allow-Origin "*"