I’m getting this 405 response. I tried to do a GET request with postman with the same information and it worked, but it doesn’t work with my ionic2 Angular2 code.
In rest client it is working but in chrome and FireFox it is throwing 405 error(working in IE)
OPTIONS (URL) 405 (Method Not Allowed)
e @ polyfills.js:3
t.scheduleTask @ polyfills.js:3
e.scheduleMacroTask @ polyfills.js:3
(anonymous) @ polyfills.js:3
send @ VM5444:3
(anonymous) @ xhr_backend.js:117
Observable.subscribe @ Observable.js:56
Observable._subscribe @ Observable.js:114
MapOperator.call @ map.js:54
Observable.subscribe @ Observable.js:53
MenuPage @ menu-page.ts:39
Wrapper_MenuPage @ /AppModule/MenuPage/wrapper.ngfactory.js:7
View_MenuPage_Host0.createInternal @ /AppModule/MenuPage/host.ngfactory.js:15
AppView.createHostView @ view.js:81
DebugAppView.createHostView @ view.js:341
ComponentFactory.create @ component_factory.js:154
NavControllerBase._viewInit @ nav-controller-base.js:408
NavControllerBase._nextTrns @ nav-controller-base.js:237
NavControllerBase._queueTrns @ nav-controller-base.js:208
NavControllerBase._setPages @ nav-controller-base.js:140
NavControllerBase.setRoot @ nav-controller-base.js:126
IESComp.openPage @ app.component.ts:84
View_IESComp1.handleEvent_0 @ /AppModule/IESComp/component.ngfactory.js:257
(anonymous) @ view.js:408
(anonymous) @ dom_renderer.js:276
t.invokeTask @ polyfills.js:3
onInvokeTask @ ng_zone.js:227
t.invokeTask @ polyfills.js:3
e.runTask @ polyfills.js:3
invoke @ polyfills.js:3
(index):1 XMLHttpRequest cannot load Response for preflight has invalid HTTP status code 405