Came across an issue where a preflight request that did not match an allowed-origin was not ended when the endPreflightRequests flag was true.
If an OPTIONS request is not matched with endPrefilghtRequests set to true, it is unlikely that the lib user wants to handle it his/herself and it would be difficult to take any meaningful action.
Came across an issue where a preflight request that did not match an allowed-origin was not ended when the
endPreflightRequests
flag was true.If an
OPTIONS
request is not matched withendPrefilghtRequests
set to true, it is unlikely that the lib user wants to handle it his/herself and it would be difficult to take any meaningful action.Tests added,
Cheers!