aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Why Cors AddPolicy doesn't allow *.example.com ?

Open jkotas opened this issue 8 years ago • 5 comments

From @AhmedRagheb on January 5, 2018 13:58

Hello,

Is there a reason (security may be) that prevent Cors AddPolicy from adding all subdomains of my domain in Origins list. As I think it doesn't make sense to add all my subdomains to the Origins list.

Thanks.

Copied from original issue: dotnet/coreclr#15753

jkotas avatar Jan 05 '18 17:01 jkotas

This belongs to https://github.com/aspnet/CORS repo

jkotas avatar Jan 05 '18 17:01 jkotas

This issue was moved to aspnet/CORS#140

jkotas avatar Jan 05 '18 17:01 jkotas

Any updates or explanation regarding this?

AhmedRagheb avatar Jan 09 '18 13:01 AhmedRagheb

See https://github.com/aspnet/CORS/issues/75 and https://github.com/aspnet/CORS/pull/94 for why we ended up not supporting wildcards and instead gave you a function you can use.

blowdart avatar Jan 16 '18 21:01 blowdart

Closing since this question has been answered.

pranavkm avatar Sep 26 '18 14:09 pranavkm