azure-cdn

Forcing HTTPS with Azure CDN

你说的曾经没有我的故事 提交于 2019-12-18 12:57:16
问题 I’m using Azure CDN in front of a Storage Account. I’m wanting to serve everything via HTTPS only, so I’ve setup HTTPS on the custom domain and created a URL rewrite: But the problem is that I end up at a URL like this: https://the-custom-domain/website/17/index.html The website/17/index.html is the root content within the Storage Account, but I don’t know why it’s appending the container path before the filename. There’s also rewrite rule for static files (https://blog.lifeishao.com/2017/05

hosting fonts on azure cdn - CORS support

拥有回忆 提交于 2019-12-18 04:48:15
问题 I cannot get azure blob storage hosted fonts exposed via azure cdn working in IE or Firefox. I believe this is because of @font-face cross-domain issues (CORS) and the normal solution is to add an Access-Control-Allow-Origin header. I know that most CDNs now support this but am assuming that Azure still doesn't. Can anyone confirm this? If this is the case, are there any workarounds? 回答1: This is no longer true, azure supports CORS http://blogs.msdn.com/b/windowsazurestorage/archive/2013/11

Azure CDN rules engine to rewrite default document and remove .html extension

喜夏-厌秋 提交于 2019-12-17 23:15:01
问题 I would like to use azure blob and CDN premium features but the documentation is very sparse . This is something totally doable on Amazon S3 / CloudFront. For clarity I want *.azureedge.net/sample/index.html to equal *.azureedge.net/sample/ and *.azureedge.net/sample/test.html to equal to *.azureedge.net/sample/test This is totally not clear and takes "up to 4 hours" to preview changes, so... After some investigation, Azure has a wrapper for Verizon Edgecast CDN, and this page looks identical

How to setup a rewrite rule on Azure CDN to serve index.html that don't match a path pattern?

*爱你&永不变心* 提交于 2019-12-14 02:14:48
问题 I want to use Azure CDN (which is powered by EdgeCast, apparently) to serve static content for my React + GraphQL web app. The CDN will pull the static files from a Storage account, and Node.js will handle the GraphQL endpoint. For the client-side routing to work properly, I need to serve /static/index.html for all requests that don't match the static content path ( /static/somefile.ext ). I want to avoid using Node.js to serve the index.html in this fashion: var express = require('express');

Is there an approach to force a Azure CDN file to download as a browser attachment?

独自空忆成欢 提交于 2019-12-12 18:08:49
问题 We're building an ASP.NET web application which integrates with a DAM (digital asset management) system. The DAM stores files in Azure blob storage and makes them available publicly using Azure CDN. We will be making these files (most are PDFs) available to download from our web app. When a user requests one of these files we will provide a custom URL which will run some code on the server (logging the download etc) before returning the relevant file for download. The client requires that the

Calling Azure CDN Purge's REST API from Flow returns Unauthorized

只谈情不闲聊 提交于 2019-12-11 14:12:31
问题 I want to purge an Azure CDN endpoint from Microsoft Flow. The CDN Profile's Pricing Ties is Standard Verzion . I have created a Microsoft Flow with an HTTP - HTTP action. I used an URL generated by the tool shown by clicking on Try it on https://docs.microsoft.com/en-us/rest/api/cdn/endpoints/purgecontent and filling the necessary fields. I want to purge all CDN content so I put the following as a body (I hope this is the right way as the official docs were silent about this use case). {

Azure CDN (Standard Microsoft) - IP addresses of servers

ⅰ亾dé卋堺 提交于 2019-12-11 12:09:24
问题 We are using an Azure CDN with pricing tier Standard Microsoft . It's using our site as a "custom origin" so we need to make sure that the CDN server has access to this site. My question is: what are the IP addresses that this CDN server could use? (And therefore, we should add to our whitelist.) I have found this link, but it applies only to Verizon servers, not to "Standard Microsoft" servers: https://docs.microsoft.com/en-us/azure/cdn/cdn-pop-list-api I also found this list of Microsoft

How to configure Azure CDN with front-end SPA and Azure WebApp with .Net Core WebApi to same custom domain?

。_饼干妹妹 提交于 2019-12-07 15:13:02
问题 I would like to have https://example.com as the custom domain for the Azure CDN I have setup, and https://example.com/api as the rest api endpoint to catch all of the calls from my SPA to the back-end .Net Core Web API providing the data. How can I setup a custom domain on an App Service to serve the https://example.com/api and use the same custom domain for the Azure CDN to serve all of the front-end SPA web pages? Right now, I have the custom domain configured for the App Service only, but

Azure Cloud Service CDN font CORS error

北城余情 提交于 2019-12-06 06:17:19
问题 I've been following this tutorial for enabling Azure CDN for Cloud Services: link. And I integrated my bundling and minification with CDN and everything works fine except my site cannot fetch fonts, I'm getting this error: Font from origin 'http://azurecdn.vo.msecnd.net' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http:// mysite.com' is therefore not allowed access. I tired to find

How to configure Azure CDN with front-end SPA and Azure WebApp with .Net Core WebApi to same custom domain?

谁说我不能喝 提交于 2019-12-05 20:40:55
I would like to have https://example.com as the custom domain for the Azure CDN I have setup, and https://example.com/api as the rest api endpoint to catch all of the calls from my SPA to the back-end .Net Core Web API providing the data. How can I setup a custom domain on an App Service to serve the https://example.com/api and use the same custom domain for the Azure CDN to serve all of the front-end SPA web pages? Right now, I have the custom domain configured for the App Service only, but I would like to move the front-end SPA to an Azure CDN to free up as many resources as possible for the