I have a page that serves some data in JSON format based on the data received from the database, but I need to release access so that the mobile version can also get such data, how can I put more than one domain in Access-Control- Origin of htaccess?
I tried the code below but it did not work
<IfModule mod_headers.c>
SetEnvIf Origin "http(s)?://(www\.)?(dominio.com|m.dominio.com)$" AccessControlAllowOrigin=$0
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
</IfModule>