vocascan/vocascan-server

bug/cors-error

luwol03 opened this issue · 1 comments

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):

  • OS: [e.g. macos]
  • node version:
  • npm version:
  • database dialect:
  • commit ref:

Additional context

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

This is fixed by #71 and #73.