'Content security policy Subdomain of subdomain

I am trying to make a CSP for my system. I know that for the domay I need 'self'. For my subdomains I need *.mywebsite.com (if I use the wildcard function). But what if I have a subdomain of my subdomain? something like test1.test2.mywebsite.com. Will the wildcard still work?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source