저는 Azure 웹 사이트에서 WordPress 사이트를 운영하고 있는데 Azure CDN 설치를 시도하고 있습니다. 엔드 포인트와 스토리지를 구성했습니다. 모든 파일이 업로드되었습니다.저는 Azure, CORS 및 WOFF hell에 있습니다
내 문제는 WOFF 및 TTF 파일입니다. Chrome에서 200 OK 상태를보고하지만 파일 크기는 0KB입니다. Firebug의 Console은 CORS 문제를 나타냅니다. 이 글꼴이 사용되는 블록 아이콘을 얻는 중 글꼴이 제대로 작동하지 않습니다.
나는 Azure CORS 규칙을 설정했습니다. 여기에 스냅 샷 ...
Allowed origins: http://fonts.gstatic.com, http://cdn.devsoftsolutions.com
Allowed methods: Get, Head, Put
Allowed headers: x-ms-*
Exposed headers: x-ms-*
Max age (seconds): 200
가 여기 내 Web.config의 설정을의 ...
<staticContent>
<remove fileExtension="svg" />
<remove fileExtension="eot" />
<remove fileExtension="woff" />
<remove fileExtension="ttf" />
<remove fileExtension=".svg" />
<remove fileExtension=".eot" />
<remove fileExtension=".woff" />
<remove fileExtension=".ttf" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<mimeMap fileExtension=".woff" mimeType="application/x-woff" />
<mimeMap fileExtension=".woff" mimeType="application/octet-stream" />
<mimeMap fileExtension=".ttf" mimeType="application/font-ttf" />
<mimeMap fileExtension=".ttf" mimeType="application/vnd.ms-fontobject" />
</staticContent>
내가이 작업 얻으려고이 사이트는
http://dev.devsoftsolutions.com