This is a migrated thread and some comments may be shown as answers.

Unauthorized error accessing kendo.common.css @font-face files cross-domain

2 Answers 290 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adam King
Top achievements
Rank 1
Adam King asked on 25 Jul 2017, 04:39 PM

After upgrading kendo we are getting the following error when accessing kendo.common.css cross-domain.

Failed to load resource: the server responded with a status of 401 (Unauthorized)

http://dev-sfri/Content/kendo/fonts/glyphs/WebComponentsIcons.woff?gedxeo
http://dev-sfri/Content/kendo/fonts/glyphs/WebComponentsIcons.ttf?gedxeo 

 

At first after upgrading we had a CORS policy error which we fixed in the web.config by adding an origin header
<add name="Access-Control-Allow-Origin" value="*" />

But now I'm not sure how to authorize the font request. 

Any ideas?

2 Answers, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 27 Jul 2017, 12:43 PM
Hi, Adam.

We are unaware of an issue regarding fonts and 401 error. Those errors are usually not associated with CORS issues.

Could there be anything else specific  to your site? Also,  if you open the same page from the same server (not from another) do you get the same error?

Regards,
Ivan Zhekov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Accepted
Adam King
Top achievements
Rank 1
answered on 27 Jul 2017, 02:04 PM

It turns out there were 2 identical calls to get the .woff file where the first one failed and the second one passed. The second request has a cookie in the request header.

This started working after upgrading chrome. Its possible we were seeing this issue https://bugs.chromium.org/p/chromium/issues/detail?id=516192

Tags
General Discussions
Asked by
Adam King
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
Adam King
Top achievements
Rank 1
Share this question
or