json-server
json-server copied to clipboard
Disable CORS
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)