Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic sending of CORS headers on stub responses #48

Closed
marcinkp opened this issue Jan 8, 2021 · 2 comments
Closed

Automatic sending of CORS headers on stub responses #48

marcinkp opened this issue Jan 8, 2021 · 2 comments
Assignees

Comments

@marcinkp
Copy link
Collaborator

marcinkp commented Jan 8, 2021

WireMock supports sending CORS headers for stub responses.

Add configuration for enable automatic sending of CORS headers on stub responses like in WM.

Use case

Consider developing SPA - for exaple react app. Application during development is avaiable on port 3000, but View as Published app is available on port 4502. It is not possible to handle it- because of CORS. You can add headers on mocks, but easier way would be to have possibility on tool by default

@pun-ky
Copy link
Collaborator

pun-ky commented Jan 8, 2021

please describe real life use case

@marcinkp marcinkp self-assigned this Jan 15, 2021
@marcinkp
Copy link
Collaborator Author

marcinkp commented Feb 1, 2021

Implemented in 2.1.0

@marcinkp marcinkp closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants