anmol5varma / JSON-Mocks

Being a part of front-end and back-end development teams, many a times the back-end/third party APIs are just not ready for integration and testing. To get around that, you can simply dump the mock JSON responses here with the required endpoint to get API endpoints up and running.
6 stars 2 forks source link

Enable CORS for the server. #1

Closed anmol5varma closed 3 years ago

anmol5varma commented 3 years ago

Currently, the server doesn't accept requests from other origins defying the prime use case to use this as a mock service while integrating. Adding the cors plugin to the express server will be helpful.

anmol5varma commented 3 years ago

CORS middleware has been added.