Ruby on Rails 8 API not allowing mobile phone connection
Jan 15 '25
Comments: 6
Answers: 0
0
My ruby on rails 8 API works with postman, but I get 401 unauthorized access when trying to connect through android studio avd. I tried to stick to this link https://husseinelgammal.hashnode.dev...-enabling-cors as much as possible and modified config/devise.rb with config.authentication_keys = [:name]
MainActivity.kt
var baseURL = "http://10.0.2.2:3000/"
var connectURL =…
Open Full Question
More...