SyntaxFix
Write A Post
Hire A Developer
Questions
This worked for me:
SetEnvIf Origin "^http(s)?://(.+\.)?(domain\.example|domain2\.example)$" origin_is=$0 Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is
When put in .htaccess, it will work for sure.
.htaccess