Fix CORS preflight OPTIONS to respect PATCH in httpNodeCors#5361
Fix CORS preflight OPTIONS to respect PATCH in httpNodeCors#5361blazinbanana wants to merge 1 commit intonode-red:masterfrom
Conversation
|
|
|
Hi, please include a link to the issue this is fixing, I assume it's this one #5356. We need to decide if this is the correct choice here, when the editor (httpAdminRoot) and the httpNodeRoot are the same (the default), we need to decide if changing the default behaviour is correct, or if moving the editor the real solution. Will changing CORs settings for the editor break things like nodes while loading 3rd party resources? |
|
My concern is this will force |
Summary
This PR fixes an issue where Node-RED's admin API did not respect the user-provided
httpNodeCors.methodslist when handling OPTIONS preflight requests. PATCH was not beingrecognized, causing CORS failures when users exposed HTTP In nodes expecting PATCH requests.
What this PR does
settings.httpNodeCors.methodsWhy this matters
Modern APIs use PATCH heavily. Users who configured PATCH in their runtime settings still
experienced failed preflight requests. This PR ensures Node-RED respects runtime configuration
as intended.
Testing
Thank you for reviewing!