Skip to content

Setting up CORS headers for mock server #4603

Description

@tudorgeorgescu

App Details:

Postman for Mac
Version 6.0.10
OS X 14.5.0 / x64

I am trying to setup a mock server to be able to test my Single page app also without the API server running, but the browser fails to pass the CORS checks, although I created a mock for the OPTIONS call and included all Access-Control-Allow-* headers in the Example for the mock.
When checking the actual response the browser gets, I can see that the Headers were not sent as I set them (ex. Access-Control-Allow-Origin still responds with *, instead of the origin I set in postman, and which is actually returned if I call the mocked API via Postman)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions