Skip to content
Snippets Groups Projects
Commit 93db265b authored by Eugen's avatar Eugen Committed by GitHub
Browse files

Do not store last visited URL from API controllers (#1330)

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"}
parent c1729197
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment