Fixes #23135 - Allow cross origin request for /nodeinfo/2.0 API (#27413)

shrike
Wladimir Palant 2023-10-16 13:39:25 +02:00 committed by GitHub
parent 13456efd7b
commit 23f8e93c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Rails.application.config.middleware.insert_before 0, Rack::Cors do
with_options headers: :any, credentials: false do
with_options methods: [:get] do
resource '/.well-known/*'
resource '/nodeinfo/*'
resource '/@:username'
resource '/users/:username'
end