Skip to content

CORS Allow Origin

Austen Stone edited this page Jan 3, 2020 · 1 revision

For the deviceWISE HTTP server to communicate with any origin that is not own it must implement Cross Origin Resource Sharing (CORS).

To achieve this in deviceWISE you must modify the file deviceWISE\Runtime\dwcore\dwcore.properties

Add this line to the bottom of the properties file.

http.allow_origin={{origin}}

Where the origin is the address you are requesting from.

For example to allow communication from localhost 4200

http.allow_origin=http://localhost:4200

Clone this wiki locally