Skip to content

Commit

Permalink
Fixes regex for identifing aviaryplatform host
Browse files Browse the repository at this point in the history
  • Loading branch information
afred committed Jan 28, 2025
1 parent 674f198 commit ed19496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/controllers/media_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ class MediaController < ApplicationController

def show
if can?(:access_media_url, pbcore)
# TODO wrap in conditional after testing
# TODO: wrap in conditional specific to CORS-allowed requests once confirmed
# that the headers are correctly being set.
allow_cors!
redirect_to media_url
else
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class User
DARTMOUTH_HOST_RE = /^(.+\.)?meptest\.dartmouth\.edu$/
DARTMOUTH_HOST_2_RE = /^(.+\.)?pub\.dartmouth\.edu$/
GITHUB_IO = /^(.+\.)?github\.io$/
AVIARY_PLATFORM = /^(.+\.)?iiif\.aviaryplatform\.com$/
AVIARY_PLATFORM = /^(.+)?iiif\.aviaryplatform\.com$/
POPUP_HOST_RE = /^(.+\.)?popuparchive\.com$/
AAPB_HOST_RE = /^(.+\.)?americanarchive\.org$/
AWS_HOST_RE = /^(.+\.)?wgbh-mla\.org$/
Expand Down

0 comments on commit ed19496

Please sign in to comment.