Which CORS requests should get responses with Allow-* headers ? We can do one of the following:
Use a configuration list defined by an administrator.
For example define a new section in restcom.xml like the following:
<corsWhitelist>
<origin>http://foo.restcomm.com</origin>
</corsWhitelist>
and add the necessary configuration scripts to populate this configuration from restcomm.conf/advanced.conf
Set up a convention
Set up a convention based on the destination name of the request. For example if the incoming request targeted domainA.restcomm.com return an Access-Control-Allow-Origin header like Access-Control-Allow-Origin=rvd.domainA.restcomm.com.
@deruelle , @leftyb thoughts ?
Or of course we could support both ways.
Which CORS requests should get responses with Allow-* headers ? We can do one of the following:
Use a configuration list defined by an administrator.
For example define a new section in restcom.xml like the following:
and add the necessary configuration scripts to populate this configuration from restcomm.conf/advanced.conf
Set up a convention
Set up a convention based on the destination name of the request. For example if the incoming request targeted
domainA.restcomm.comreturn an Access-Control-Allow-Origin header likeAccess-Control-Allow-Origin=rvd.domainA.restcomm.com.@deruelle , @leftyb thoughts ?
Or of course we could support both ways.