mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
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"}
This commit is contained in:
parent
c172919745
commit
93db265be7
@ -7,6 +7,7 @@ class ApiController < ApplicationController
|
|||||||
protect_from_forgery with: :null_session
|
protect_from_forgery with: :null_session
|
||||||
|
|
||||||
skip_before_action :verify_authenticity_token
|
skip_before_action :verify_authenticity_token
|
||||||
|
skip_before_action :store_current_location
|
||||||
|
|
||||||
before_action :set_rate_limit_headers
|
before_action :set_rate_limit_headers
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user