Ruby on Rails 8 API not allowing mobile phone connection

Ruby on Rails 8 API not allowing mobile phone connection

Jan 15 ’25
Comments: 6
Answers: 0


This content originally appeared on DEV Community and was authored by MUSTDOS

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/implementing-an-authentication-in-a-ruby-on-rails-api-only-project-using-devise-and-jwt#heading-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 =


This content originally appeared on DEV Community and was authored by MUSTDOS


Print Share Comment Cite Upload Translate Updates
APA

MUSTDOS | Sciencx (2025-01-15T21:20:23+00:00) Ruby on Rails 8 API not allowing mobile phone connection. Retrieved from https://www.scien.cx/2025/01/15/ruby-on-rails-8-api-not-allowing-mobile-phone-connection/

MLA
" » Ruby on Rails 8 API not allowing mobile phone connection." MUSTDOS | Sciencx - Wednesday January 15, 2025, https://www.scien.cx/2025/01/15/ruby-on-rails-8-api-not-allowing-mobile-phone-connection/
HARVARD
MUSTDOS | Sciencx Wednesday January 15, 2025 » Ruby on Rails 8 API not allowing mobile phone connection., viewed ,<https://www.scien.cx/2025/01/15/ruby-on-rails-8-api-not-allowing-mobile-phone-connection/>
VANCOUVER
MUSTDOS | Sciencx - » Ruby on Rails 8 API not allowing mobile phone connection. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/15/ruby-on-rails-8-api-not-allowing-mobile-phone-connection/
CHICAGO
" » Ruby on Rails 8 API not allowing mobile phone connection." MUSTDOS | Sciencx - Accessed . https://www.scien.cx/2025/01/15/ruby-on-rails-8-api-not-allowing-mobile-phone-connection/
IEEE
" » Ruby on Rails 8 API not allowing mobile phone connection." MUSTDOS | Sciencx [Online]. Available: https://www.scien.cx/2025/01/15/ruby-on-rails-8-api-not-allowing-mobile-phone-connection/. [Accessed: ]
rf:citation
» Ruby on Rails 8 API not allowing mobile phone connection | MUSTDOS | Sciencx | https://www.scien.cx/2025/01/15/ruby-on-rails-8-api-not-allowing-mobile-phone-connection/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.