Closed pibi closed 2 years ago
Confirmed on version 0.10.0
The problem is that, there is no registered handler for the path with OPTIONS
method.
Here is a workaround:
It can solve it, but I don't know it doesn't cause other issues...e.g It can find a GET alias and not the POST
Fixed.
We are using moleculer-web
0.9.1
for an API service. We use a lot of custom APIs with fullPath and autoalias. We have noticed that the API-GW cors code doesn't match the route when the path doesn't start with the routes path. In this case the cors preflight doesn't work, it returns a 404.To show you the issue, we have managed to reproduce it in the API-GW by using the aliases:
if the fullPath starts with the route path, the cors is correctly set: