api-stub icon indicating copy to clipboard operation
api-stub copied to clipboard

added support for default and per endpoint headers

Open shainegordon opened this issue 10 years ago • 0 comments

This is a very nice little library for quickly stubbing endpoints, however I was running into CORS issues, so I needed header support.

This PR allows you to pass in the config as an array, or as an object, which contains the default headers, and the endpoints.

I have also added support for headers per endpoint.

shainegordon avatar Nov 13 '15 13:11 shainegordon