Skip to content

Commit

Permalink
Do not store last visited URL from API controllers (#1330)
Browse files Browse the repository at this point in the history
Sign-in redirects you back to last visited URL, but in case of API requests,
this sometimes redirected users to an API URL that, of course, greeted them
with an {"error":"The access token is invalid"}
  • Loading branch information
Gargron committed Apr 9, 2017
1 parent c172919 commit 93db265
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class ApiController < ApplicationController
protect_from_forgery with: :null_session

skip_before_action :verify_authenticity_token
skip_before_action :store_current_location

before_action :set_rate_limit_headers

Expand Down

0 comments on commit 93db265

Please sign in to comment.