Reaper devs: Can the webserver be made to allow cross origin access on localhost?
I'm playing around with the newly released Stream Deck SDK, and am trying to make a Stream Deck plugin that allows sending and receiving actions and data via the web browser interface.
This works ok for sending actions from the Stream Deck, but for receiving data - in this case a GET/EXTSTATE/key/value request - I run into problems because of the servers cross-origin policy. I get this error:
"No 'Access-Control-Allow-Origin' header is present on the requested resource"
The problem is basically that the Stream Deck runs the plugin on it's own webserver - that is also on localhost, but on a different port.
Can anything be done to allow these kind of requests? Just allowing XMLHttRequests from all ports on localhost would be great and, I think, not much of a security issue?
|