Azure Blob CORS setup for multiple certain hosts -
the limitations configure cors in blob storages frustrating me.
- maximum 265 characters
- no wildcard hosts
- maximum 5 cors rules
as result of these restrictions, come maximum of ~48 hosts.
see docs.microsoft.com.
for scenario (private cdn serve assets js, css, fonts), can not see other way use *
allowedorigins
. is way? nobody (no other host) should able use licensed fonts (https://www.viget.com/articles/cors-youre-doing-it-wrong).
integration
a wildcard *.int.any.local.network
solution.
http://brand-at.int.any.local.network http://brand-be.int.any.local.network http://brand-bg.int.any.local.network http://brand-ca.int.any.local.network http://brand-ch.int.any.local.network http://brand-cn.int.any.local.network http://brand-tr.int.any.local.network http://brand-cz.int.any.local.network http://brand-de.int.any.local.network http://brand-dk.int.any.local.network http://brand-es.int.any.local.network http://brand-fi.int.any.local.network http://brand-fr.int.any.local.network http://brand-co.uk.int.any.local.network http://brand-hu.int.any.local.network http://brand-ie.int.any.local.network http://brand-it.int.any.local.network http://brand-nl.int.any.local.network http://brand-pl.int.any.local.network http://brand-pt.int.any.local.network http://brand-ro.int.any.local.network http://brand-ru.int.any.local.network http://brand-se.int.any.local.network http://brand-sk.int.any.local.network http://brand-tr.int.any.local.network http://brand-us.int.any.local.network http://brand-za.int.any.local.network
staging
a wildcard *.qs.any.dmz.network
solution.
http://brand-at.qs.any.dmz.network http://brand-be.qs.any.dmz.network http://brand-bg.qs.any.dmz.network http://brand-ca.qs.any.dmz.network http://brand-ch.qs.any.dmz.network http://brand-cn.qs.any.dmz.network http://brand-tr.qs.any.dmz.network http://brand-cz.qs.any.dmz.network http://brand-de.qs.any.dmz.network http://brand-dk.qs.any.dmz.network http://brand-es.qs.any.dmz.network http://brand-fi.qs.any.dmz.network http://brand-fr.qs.any.dmz.network http://brand-co.uk.qs.any.dmz.network http://brand-hu.qs.any.dmz.network http://brand-ie.qs.any.dmz.network http://brand-it.qs.any.dmz.network http://brand-nl.qs.any.dmz.network http://brand-pl.qs.any.dmz.network http://brand-pt.qs.any.dmz.network http://brand-ro.qs.any.dmz.network http://brand-ru.qs.any.dmz.network http://brand-se.qs.any.dmz.network http://brand-sk.qs.any.dmz.network http://brand-tr.qs.any.dmz.network http://brand-us.qs.any.dmz.network http://brand-za.qs.any.dmz.network
live
all live host must added. no wildcard save here.
http://www.brand.at http://www.brand.be http://www.brand.bg http://www.brand.ca http://www.brand.ch http://www.brand.cn http://www.brand.tr http://www.brand.cz http://www.brand.de http://www.brand.dk http://www.brand.es http://www.brand.fi http://www.brand.fr http://www.brand.co.uk http://www.brand.hu http://www.brand.ie http://www.brand.it http://www.brand.nl http://www.brand.pl http://www.brand.pt http://www.brand.ro http://www.brand.ru http://www.brand.se http://www.brand.sk http://www.brand.tr http://www.brand.us http://www.brand.za
according rules of azure blob cors allowed origins. add 64 origin domains per cors rule. since can add 5 rules, max origin domains support azure storage 320(64*5). set origin domain following format.
http://aa.com,http://bb.com,http://cc.com
if origin domains count need set max 320, need use multi azure storage accounts.
Comments
Post a Comment