Adding wildcard as allowed origin doesn't work

Check-out my answer here: Setting non standard allowed origin - #2 by bentley

I think that the workaround mentioned there is the same one you’d want to use.