my code is redirecting with a options requisition instead of a get, what could cause that?
the redirecting comes from here:
def destroy
sign_out
redirect_to "#{YAML.load_file("#{Rails.root}/config/sso.yml")[Rails.env]["provider_url"]}/logout?redirect=#{root_url}", allow_other_host: true
end
returns this error on the another application:
Started OPTIONS “/logout?redirect=http://localhost:3009/” for ::1 at
2024-09-18 15:16:29 -0300 ActionController::RoutingError (No route
matches [OPTIONS] “/logout”):
Rails 7.0.8.4
ruby 2.7.8p225
5