css - Cookie Request Header for Web Fonts -


i'm running issue i'm trying load authenticated html content different domain via cors. content includes references images, styles, , fonts.

i can load html, images, styles, etc. reason cookie headers not being passed along web fonts, resulting in 403 forbidden error.

if after logging in, try access webfont directly, i'm able , downloads fine, it's failing inside of @font-face at-rule in our css.

how can browser send along auth cookie when requests web fonts? possible? wrong?

thanks!

the question quite old, had same problem in chrome android.

not tested yet guess ios browsers may show problem.

i solved adding css includes font-face jquery after authentication has been completed.

something like:

$.when(my-function).done(function() {  $('head').append($('<link rel="stylesheet" type="text/css" />').attr('href', 'css/main.css')); $('head').append($('<link rel="stylesheet" type="text/css" />').attr('href', 'css/font-awesome.min.css')); }); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -