Comments (2)
connect-api-mocker
doesn't set CORS headers because it's intended to be part of an express(or similar) app that can be managed separately. If you want to use mocker as a standalone server I suggest to use cli-api-mocker that is also using connect-api-mocker
internally but sending CORS headers as well.
from connect-api-mocker.
I'm closing this now. If you still think that is a valid issue please feel free to reopen it.
from connect-api-mocker.
Related Issues (20)
- Undefined baseUrl property when using with Connect HOT 3
- ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'api/users' HOT 18
- Writing test cases for lite-server implementation
- Update(or add) express.js independent examples
- Custom response middleware without `body-parser` HOT 9
- put.js behaves slow(10s+) HOT 2
- Custom global response header for all requests.(CORS) HOT 1
- Catch all nested paths HOT 1
- Using semantic-release for automating releases HOT 1
- Returning images as mock HOT 6
- Custom response helper methods HOT 1
- Action required: Greenkeeper could not be activated 🚨
- [Feature Request] Add wildcard support for json files HOT 6
- [Feature Request] Enable logging HOT 4
- Mocking dosn't work when using absolut Urls HOT 1
- Parse FormData request HOT 1
- Can't seem to get anything from request.body with POST HOT 4
- Configuration with Next.js HOT 1
- generate JSON files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connect-api-mocker.