Content security policy Subdomain of subdomain

Viewed 369

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?

1 Answers

It will match. From CSP3

Hosts such as example.com (which matches any resource on the host, regardless of scheme) or *.example.com (which matches any resource on the host’s subdomains (and any of its subdomains' subdomains, and so on))

Related