Hi,
I am doing some regex to allow CORS for specific domains. Currently I'm using the following:
SetEnvIf Origin "^http(s)?://(.+\.)?(mysite\.org|mysite2\.com)$" CORS_ALLOW_ORIGIN=$0
This should allow *.mysite.org and *.mysite2.com via CORS. The problem I'm encountering is that if the DNS record contains a dash (i.e. uat- it does not work. What is the proper regex to support that?
I'm fine with a wildcard for all records for that domain.
Any help would be greatly appreciated.
Thanks,
John
I am doing some regex to allow CORS for specific domains. Currently I'm using the following:
SetEnvIf Origin "^http(s)?://(.+\.)?(mysite\.org|mysite2\.com)$" CORS_ALLOW_ORIGIN=$0
This should allow *.mysite.org and *.mysite2.com via CORS. The problem I'm encountering is that if the DNS record contains a dash (i.e. uat- it does not work. What is the proper regex to support that?
I'm fine with a wildcard for all records for that domain.
Any help would be greatly appreciated.
Thanks,
John