Cross-Origin Resource Sharing (CORS) is a W3C standard that allows data sharing between domains. CORS enables web applications running in one domain to access data from another domain.
By enabling CORS on your Spectrum Technology Platform server, you can allow web applications hosted in another domain to access Spectrum Technology Platform web services.
For example, say you have a web application hosted at webapp.example.com. This web application contains a JavaScript function that calls a Spectrum Technology Platform web service hosted at spectrum.example.com. Without CORS, you would need to use a proxy server to facilitate this request, which would add complexity to your implementation. With CORS, you do not need to use a proxy server. Instead, you can designate webapp.example.com as an "allowed origin", thus permitting Spectrum Technology Platform to respond to web service requests that originate from the domain webapp.example.com.
To enable CORS on your Spectrum Technology Platform server: