Connection through an unsecure HTTP communication detected.
- Rule ID: ruby_lang_http_insecure
- Languages: ruby
- Source: http_insecure.yml
Applications should only connect to API using HTTPS connections. This rule checks that all HTTP connections use HTTPS.
❌ Avoid using unsecured outgoing HTTP communication, especially in the context of API calls:
response = HTTParty.get('http://insecure-api.com')
✅ Ensure to always connect though HTTPS:
response = HTTParty.get('https://secure-api.com')