You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
[2021-08-30T16:56:46.501Z] INFO spectrex360-34464/API: Register route to '/api'
[2021-08-30T16:56:46.505Z] INFO spectrex360-34464/API: POST /api/welcome => greeters.welcome
[2021-08-30T16:57:21.114Z] INFO spectrex360-34464/API: => OPTIONS /welcome
[2021-08-30T16:57:21.115Z] INFO spectrex360-34464/API: <= 204 OPTIONS /api/welcome [+1.492 ms]
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: