Hi Raymond,

405 is not a CORS problem, those are displayed as error in the browser as not 
authorized (or something similar) and the real GET, POST or PUT request is 
never issued to the app. The preflight usually issue a OPTION request to get 
the headers.

You should begin by identifying the exact request that return the 405. If you 
enable web inspector in your browser, you should see the request and response 
in the Network pane. Check the request url, method and header sent.

Next step if to identify if your app routes handle this request. It would 
probably be helpful to trace the request with ERRest source code in Eclipse.

The current ERRest default routes handle the options request by returning the 
values in the properties. If you added your routes manually, you may need to 
add one for the OPTIUONS method.

Regards,

Samuel




> Le 22 janv. 2018 à 03:12, Raymond NANEON <rnan...@me.com> a écrit :
> 
> Hi,
> 
> I want to use my WO app as API for my angular webApp that's means I'm in CORS 
> situation and server side I add this attributes in properties :
> 
> ERXRest.accessControlAllowOrigin=*
> ERXRest.allowWindowNameCrossDomainTransport=true
> ERXRest.allowJSONP=true
> 
> But When I try GET from my webApp, the preflight send me 405 status
> 
> ERROR er.rest.routes.ERXRouteController  - Request failed: - 405
> 
> How to avoid this error on preflight?
> 
> Thanks a lot for help
> 
> 
> Envoyé depuis iCloud
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
> 
> This email sent to sam...@samkar.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to