json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Disable CORS

Open ocomsoft opened this issue 3 years ago • 0 comments

Proposed changes

When using this the Chrome would throw up a CORS error because the Vue app was served from another port. To avoid this we needed to change the server to allow requests from all origins.

Type of change

  • New feature
  • Improvement (improvement to code, performance, etc)
  • Documentation update

Checklist

  • [ ] Lint (golangci-lint run) has passed locally and any fixes were made for failures
  • [ ] Tests (go test ./...) for the changes have been added (bug fixes / features)
  • [ ] Docs have been reviewed and added / updated if needed (bug fixes / features)

ocomsoft avatar Feb 03 '22 03:02 ocomsoft