muratcorlu / connect-api-mocker

Connect middleware that creates mocks for REST APIs
Apache License 2.0
271 stars 18 forks source link

Mocking dosn't work when using absolut Urls #56

Open BennyAlex opened 4 years ago

BennyAlex commented 4 years ago

Hello,

the mockign dosnt work when I try to use an absolute URL (www.example.com/api/)

I already set the urlRoot to www.example.com/api/.

muratcorlu commented 3 years ago

Can it be related with CORS limitations? If you want to make a request to a different domain, requested server needs to return CORS response headers. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS