Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4619

Heroku Rails App Returning "Not Found" When trying to GET, POST etc to API from a JS Front End

$
0
0

I tried updating the rack cors for rails but every time I try to get data from the API externally from localhost. I get a "Not Found" payload/error.

Any suggestions?

Rails Version: 7.1.3Ruby Version: 3.2

Started GET "/api/users/access_token.json" for 173.64.99.241 at 2024-02-11 18:05:06 +00002024-02-11T18:05:06.202057+00:00 app[web.7]: [dad815cd-5c45-44d6-baf1-368cb30fc3d5] Processing by Api::UsersController#show as JSON2024-02-11T18:05:06.202066+00:00 app[web.7]: [dad815cd-5c45-44d6-baf1-368cb30fc3d5]   Parameters: {"access_token"=>"[FILTERED]", "user"=>{}}

The server returns "Not Found" in Heroku production.

Locally the server returns the JSON values


Viewing all articles
Browse latest Browse all 4619

Trending Articles