I am wondering if it is possible to do conditional cross-domain calls to the service only when a "vendor key" is given to an authorised 3rd party.
Remotely:
When the service is called by some authorised remote server, service enables CROS feature, but a "vendor key" is required as a parameter or cookies.
Locally:
When the service is called by its own web server, ajax calls are accepted as usual. The "vendor key" parameter is not required when local server hits a CROS service.
Could you please give me some direction on how to implement it?