If the editor route is changed (e.g. to device-editor) it no longer returns CORS headers unless the httpNodeCors settings directive is enabled as the default CORS behaviour is handled by the editor.
Expected Behavior
The device agent should set the httpNodeCors to match the defaults
Steps To Reproduce
Host an HTTP endpoint in a device agent
Make a HTTP request from a 3rd party webpage or make a http OPTIONS call to the endpoint
Current Behavior
Bu default Node-RED will respond with the following CORS headers when an OPTIONS HTTP request is made to a HTTP-in/HTTP-response pair
If the editor route is changed (e.g. to
device-editor
) it no longer returns CORS headers unless thehttpNodeCors
settings directive is enabled as the default CORS behaviour is handled by the editor.Expected Behavior
The device agent should set the
httpNodeCors
to match the defaultsSteps To Reproduce
Environment