'Hiding Azure CDN url
Is there any way to hide the Azure CDN Url in the browser. We have developed the application using ASP.Net Core 2 with Angular 5, also is there any helper class for archiving this (Microsoft Recommended)
Solution 1:[1]
In these kind of scenario, hiding is not a valid option, instead i would recommend you to implement the encryption/decryption logic.
Here is something which you can do:
- Populate the Azure CDN url by posting the data from backend.
- Before posting the data to your front end , encrypt the url and send it
- While you will send the request to CDN , at the back end, decrypt the URL.
This is the elegant solution int his scenario.
Hope it helps.
Solution 2:[2]
Don't want azureedge.net? Use a CNAME DNS entry pointing to it - you can even use it with HTTPS.
It'll be possible to determine that you're using Azure's CDN, but it won't be so visible in the browser.
Solution 3:[3]
You can use custom DNS this will mask the CDN URL
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Mohit Verma |
Solution 2 | GreenReaper |
Solution 3 | Waseem Khan |