I was reading this stack overflow answer today and wondering if something similar can be implemented with OLS.
Basically allowing CORS between a main domain and any subdomain.
In Apache, a possible answer is this:
but I'm guessing most of this is not supported by OLS.
Basically allowing CORS between a main domain and any subdomain.
In Apache, a possible answer is this:
SetEnvIf Origin ^(https?://.+\.mywebsite\.com(?::\d{1,5})?)$ CORS_ALLOW_ORIGIN=$1
Header append Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN
Header merge Vary "Origin"
Header append Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN
Header merge Vary "Origin"