mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-09 17:15:18 +00:00
Allow POST /oauth/revoke
through CORS (#31743)
This commit is contained in:
parent
36710aec8b
commit
ee55d20fd5
|
@ -22,6 +22,7 @@ Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
||||||
expose: %w(Link X-RateLimit-Reset X-RateLimit-Limit X-RateLimit-Remaining X-Request-Id),
|
expose: %w(Link X-RateLimit-Reset X-RateLimit-Limit X-RateLimit-Remaining X-Request-Id),
|
||||||
methods: %i(post put delete get patch options)
|
methods: %i(post put delete get patch options)
|
||||||
resource '/oauth/token', methods: [:post]
|
resource '/oauth/token', methods: [:post]
|
||||||
|
resource '/oauth/revoke', methods: [:post]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue