You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/30 19:12:32 UTC

[GitHub] [cordova-ios] breautek commented on issue #925: Preflight response is not successful

breautek commented on issue #925:
URL: https://github.com/apache/cordova-ios/issues/925#issuecomment-651989364


   > @timbru31 do you have any tutorial to configure it? Is that possible to configure only from client side or we will need a server side change?
   
   This is a server thing. Providing a tutorial is not really possible, specific instructions will depend on your server stack.
   
   Over simplified instructions would be:
   
   - Respond to the `OPTIONS` method request (reply with no data, but do set `Access-Control` headers).
   - Set `Access-Control-Allow-Methods`, `Access-Control-Allow-Origin`, and `Access-Control-Allow-Headers` in your response headers for `OPTIONS`, `GET`, and `POST` request methods. This is to support both "preflight" request and "simple" requests.
   
   https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS for more detailed information on how CORS protocol works. I would recommend reading.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org