Skip to content

Implement dynamic logic for CORS request filtering  #2230

@otsakir

Description

@otsakir

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions