vocascan / vocascan-server

Server for Vocascan
https://vocascan.com
Apache License 2.0
26 stars 5 forks source link

bug/cors-error #57

Closed luwol03 closed 2 years ago

luwol03 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Fetch the api from crossorigin in the browser
  2. See cors error in debug console

Expected behavior Api should return the result and browser shouldnt block the request due to cross origin.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context

Should be an easy fix by adding the cors middleware to the server.js

luwol03 commented 2 years ago

This is fixed by #71 and #73.