apache - Enabling CORS .htaccess restrictions -


i encountering behaviour produciton server , wondering if confirm if possible , how might have been done.

i have website www.example.com ssl enabled , traffic forwarding https on site have font file https://www.example.com/wp-content/assets/fonts/icons.ttf

i have additional campaign sites (e.g www.examplecampaign.com) use css file example.com loads in font face using font file. adding relevant file types woff, etc refer ttf simplicity. icon font displays fine on www.example.com on www.examplecampaign.com because in firefox error

cross-origin request blocked: same origin policy disallows reading remote resource @ https://www.example.com/wp-content/assets/fonts/icons.ttf. can fixed moving resource same domain or enabling cors. 

so here begins problem. on our stage server have full access can add

# begin required webfonts  addtype font/ttf .ttf addtype font/eot .eot addtype font/otf .otf addtype font/woff .woff  <filesmatch "\.(ttf|otf|eot|woff)$">     <ifmodule mod_headers.c>         header set access-control-allow-origin "*" </ifmodule> 

# end required webfonts 

to .htaccess file , solves problem. on our produciton server owned , managed client header modification ignored. using http://web-sniffer.net/ test this.

to further complicate things hvae found if added

 <ifmodule mod_headers.c>     header set access-control-allow-origin "*" </ifmodule> 

on stage site header appear when requesting page or resource on production server if added access-control-allow-origin appear on pages apart font files (and possible other resources).

so question is, possible in apache disable / ignore header modification file type(s) , how done. it's weird it's specific. no longer have sudo access , have request changes conf files 1 of reasons im making change in .htaccess not think matter set? example.com wordpress site don't think affect anything? it's working on stage not produciton.

does know of apache configuration restrict use of mod_header in way?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -