This makes it possible to use a different URL for connecting to the API
and still allowing connections to the image recognition server from the
pro client.
Ideally I'd have made this configurable, but I couldn't find a way to do
that. res.header 'Access-Control-Allow-Origin' doesn't allow setting
multiple domains in it.
After some off-GitHub discussion, I think we agreed that a simple boolean setting that will change the CORS header to * should suffice. I'll re-do the patch.
This makes it possible to use a different URL for connecting to the API and still allowing connections to the image recognition server from the pro client.
Ideally I'd have made this configurable, but I couldn't find a way to do that. res.header 'Access-Control-Allow-Origin' doesn't allow setting multiple domains in it.
This fixes https://github.com/WoodWing/elvis-image-recognition/issues/5