4
I have a page that serves some data in JSON format based on the data received from the database, but I need to free access so that the mobile version can also obtain such data, as I can put more than one domain in htaccess’s Access-Control-Allow-Origin?
I tried the code below but it didn’t 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>
None of the answers answers your question?
– durtto
At the moment, no
– Leo Letto