Skip to content

Commit

Permalink
Merge pull request #6103 from avalonmediasystem/s3_cors
Browse files Browse the repository at this point in the history
Fix CORS issues related to S3, timelines, and playlists
  • Loading branch information
masaball authored Nov 5, 2024
2 parents 45391e4 + b77d504 commit cfedcd5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ class Application < Rails::Application
resource '/master_files/*/*.m3u8', headers: :any, credentials: true, methods: [:get, :head]
resource '/master_files/*/captions', headers: :any, methods: [:get]
resource '/master_files/*/supplemental_files/*', headers: :any, methods: [:get]
resource '/playlists/*/manifest.json', headers: :any, credentials: true, methods: [:get]
resource '/timelines/*/manifest.json', headers: :any, methods: [:get, :post]
resource '/playlists/*/manifest*', headers: :any, credentials: true, methods: [:get]
resource '/timelines/*/manifest*', headers: :any, methods: [:get, :post]
resource '/master_files/*/search', headers: :any, methods: [:get]
resource '/rails/active_storage/blobs/*/*/*', headers: :any, methods: [:get]
resource '/rails/active_storage/disk/*/*', headers: :any, methods: [:get]
end
end

Expand Down

0 comments on commit cfedcd5

Please sign in to comment.