• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ER.Rest - 405 Status on preflight
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ER.Rest - 405 Status on preflight


  • Subject: Re: ER.Rest - 405 Status on preflight
  • From: Raymond NANEON <email@hidden>
  • Date: Wed, 24 Jan 2018 20:23:28 +0100

Hi Samuel,

Thanks for advices. I solved my issue by using addRoutes in stead on
addDefaultRoute on my route registring. I think the last one do not allow
OPTIONS.

Cheer

Envoyé de mon iPhone

> Le 22 janv. 2018 à 18:26, Samuel Pelletier <email@hidden> a écrit :
>
> 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 <email@hidden> 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      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Optimizing WO use on AWS
  • Next by Date: Re: Optimizing WO use on AWS
  • Previous by thread: Re: [E] Re: Optimizing WO use on AWS
  • Next by thread: Prevent loading model into default group
  • Index(es):
    • Date
    • Thread