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">
<system.webServer>
<httpProtocol>
<customHeaders>
<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" />
</customHeaders>
</httpProtocol>
<rewrite>
<outboundRules>
<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))" />
</conditions>
<action type="Rewrite" value="{C:0}" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>
</location>
And the web.config also has:
<httpProtocol>
<customHeaders>
<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" />
</customHeaders>
</httpProtocol>
Let me know if I miss anything.
Regards, Chandra.