Open StefanoMagrassi opened 7 years ago
The error happens when there is a "preflight" request and the "dynamic path" case is not controlled.
In order to replicate the bug, you can try to make a fetch
request to a stubb with a dynamic path, setting a custom header in the init
optional object (see MDN/fetch)
When a stubb for the provided method isn't found Saray should not set response status code 404.
See https://github.com/contactlab/saray/blob/master/src/index.js#L211