Skip to content

Conversation

@tve
Copy link

@tve tve commented May 6, 2021

A description of the changes proposed in the pull request and why

This PR enables cross-site access to uibuilder, for example so one can serve the front-end UI code from a standard javascript dev server running on one's laptop, such as using vue-cli-service serve. By default socket.io allows cross-site access, however, uibuilder sends an x-clientid custom header which must be explicitly included in the CORS preflight response. IMHO this PR does not reduce security because cross-site access was already allowed, it just didn't work out of the box: an attacker could have simply dropped the x-clientid header to get through.

Environment used for development and testing

Software Version
Node.JS v12.22.1
npm
Node-RED v1.3.4
uibuilder node v3.2.1
uibuilderFE v3.2.1
OS linux
Browser chrome

@TotallyInformation TotallyInformation merged commit 192f9bc into TotallyInformation:main May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants