# Allow CORS for the apex domain and all of its sub domain

**URL:** <https://community.traefik.io/t/allow-cors-for-the-apex-domain-and-all-of-its-sub-domain/7324>\
**Category:** Traefik v2\
**Tags:** rest-api, middleware\
**Created:** [August 17, 2020, 6:54am UTC](https://community.traefik.io/t/allow-cors-for-the-apex-domain-and-all-of-its-sub-domain/7324 "2020-08-17T06:54:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![numToStr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/numtostr/32/2393_2.png) [@numToStr](https://community.traefik.io/u/numToStr)\
**Post date:** [August 17, 2020, 6:54am UTC](https://community.traefik.io/t/allow-cors-for-the-apex-domain-and-all-of-its-sub-domain/7324/1 "2020-08-17T06:54:21Z")

</div>

Is there any way I can support all subdomain in the CORS config?
