I want to allow cross domain request for several servers following this pattern:

```
https://en.example.com, https://de.example.com

```

It seems rather simple but I'm not good with regexes and don't know how to try them without shutting down the server itself. I have tried this one but it doesn't work.

```
Header set Access-Control-Allow-Origin "^http(s)?://(.+\.)?example.com$"

```