-
Notifications
You must be signed in to change notification settings - Fork 89
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
OPTIONS Calls #46
Comments
Same here |
I didn't have any issues mocking an OPTIONS call. Just added a
Might be that you'll need to adapt access-control-allow-headers a bit. The following POST (without generic wildcard) needs to have **access-control-allow-origin: ***.
|
For me it worked only after adding the "access-control-allow-origin" in white list of the "access-control-allow-headers" |
Thanks @Mishurin it seems quite obvious to me now that I know how to solve this |
I am doing http OPTIONS call to the mocked-api via a browser using axios. I created a
OPTIONS.mock
file which is in the same directory a my POST.mock (this is working), but unfortunately this does not match. Do you have any idea how I can solve this?Reading from mocks/1.0/auth/OPTIONS.mock file: Not matched
The text was updated successfully, but these errors were encountered: