Woff/tiff files are not served via Azure CDN RRS feed

  • Question

  • Hi,

    I have a website which I access via https://www.-----.com

    Have azure cdn configured for it.

    On load of the website, I get the 500 error for the woff/tiff font files. Tried to purge and restart the cdn, but the issue exists.

    <location path="css">
              <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" />
              <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS,PUT,DELETE" />
              <clear />
              <rule name="AddCrossDomainHeader">
                <match serverVariable="RESPONSE_Access_Control_Allow_Origin" pattern=".*" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="true">
                  <add input="{HTTP_ORIGIN}" pattern="(http(s)?:\/\/((.+\.)?websitedomainname\.com))" />
                <action type="Rewrite" value="{C:0}" />

    And the web.config also has:

            <add name="Access-Control-Allow-Headers" value="content-type" />
            <add name="Access-Control-Allow-Credentials" value="true" />
            <add name="Access-Control-Allow-Origin" value="https://www.-----.com" />

    Let me know if I miss anything.

    Regards, Chandra.

    Wednesday, May 23, 2018 6:09 AM

All replies

  • Have you checked the Source to make sure that the files are properly being served to the CDN? also, if you try to access the files from a different geographical location, do you get the same error?
    Wednesday, May 23, 2018 9:59 PM
  • Can you check what headers are actually being returned in the response?

    If you post your URL here it will be easier for us to troubleshoot. 

    Thursday, May 24, 2018 9:06 PM