You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the api mock server its running on a different port when compared to the SPA Im trying to test with Protractor. Proxying API requests is not an option in my case.
Please add the ability to support OPTIONS http request methods so that preflight requests succeed.
The text was updated successfully, but these errors were encountered:
In case someone is curious.
The following mock file can be used as a catch all for all OPTION calls going to the API: { "name": "options", "request": { "url": "/api", "method": "OPTIONS" }, "responses": { "200": { "status": 200, "data": {}, "default": true } } }
Currently, the api mock server its running on a different port when compared to the SPA Im trying to test with Protractor. Proxying API requests is not an option in my case.
Please add the ability to support OPTIONS http request methods so that preflight requests succeed.
The text was updated successfully, but these errors were encountered: