Skip to content

Commit

Permalink
Merge pull request #5349 from avalonmediasystem/cjcolvar-patch-3
Browse files Browse the repository at this point in the history
Add credentials cors headers for playlist marker edit operations
  • Loading branch information
masaball authored Sep 20, 2023
2 parents 87d6daa + 443d46c commit d171ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Application < Rails::Application
config.middleware.insert_before 0, Rack::Cors do
allow do
origins { |source| true }
resource '/avalon_marker/*', headers: :any, methods: [:get, :post, :put, :delete]
resource '/avalon_marker/*', headers: :any, credentials: true, methods: [:get, :post, :put, :delete]
resource '/media_objects/*/manifest*', headers: :any, methods: [:get]
resource '/master_files/*/thumbnail', headers: :any, methods: [:get]
resource '/master_files/*/transcript/*/*', headers: :any, methods: [:get]
Expand All @@ -51,7 +51,7 @@ class Application < Rails::Application
resource '/master_files/*/caption_manifest/*', headers: :any, methods: [:get]
resource '/master_files/*/captions', headers: :any, methods: [:get]
resource '/master_files/*/supplemental_files/*', headers: :any, methods: [:get]
resource '/playlists/*/manifest.json', headers: :any, methods: [:get]
resource '/playlists/*/manifest.json', headers: :any, credentials: true, methods: [:get]
resource '/timelines/*/manifest.json', headers: :any, methods: [:get, :post]
end
end
Expand Down

0 comments on commit d171ed9

Please sign in to comment.