Is there a way to allow multiple cross-domains using the Access-Control-Allow-Origin header in OpenLiteSpeed?
I try this code in Rewrite but without success:
I try this code in Rewrite but without success:
Apache config:
SetEnvIf Origin "http(s)?://(www\.)?(domain1.example|domain2.example)$" AccessControlAllowOrigin=$0$1
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
Header set Access-Control-Allow-Credentials true