c# - CloudfrontGet cloudfront URL instead of Orgin URL -


i have domain using cloudfront in aws.

+ test1.cloudfront.com(distribution) google.com(origin) 

on browser, type

"test1.cloudfront.com" 

on controller,i declare

var url = httpcontext.current.request.url.host; //result: url = "google.com"; //origin url 

how cloudfront url instead of origin url? pls me!

upon creation of amazon cloudfront distribution, unique domain name assigned: enter image description here

use domain name access service via cloudfront.


Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -