Welcome Guest, Not a member yet? Register   Sign In
Error Put method from App in reactNative an RESTAPI CI4
#1

Hello, I am developing a rest api with CI4, and consuming it with an app in reactNative, so far without problems with get methods, now when I want to update a record by sending a PUT it returns an error ( 405 Method Not Allowed)... I am going to clarify certain things: if I try to do the PUT from my client using the local development url everything works correctly, but the question is that my app connects through ngrok since I cannot connect it directly to the localhost, so there if the error of method not allowed ... I've read about cors / heads and others ... but I can't find the solution. I leave some images to verify that the error is not in my code but that somehow CI is blocking the request ... any idea how to solve this? .. thanks in advance

   

   
Reply


Messages In This Thread
Error Put method from App in reactNative an RESTAPI CI4 - by mailitos - 06-14-2021, 05:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB