Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
peetucket committed Jan 16, 2024
1 parent c7c7a85 commit 62a36a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,4 @@ def current_ability
def ability_class
Settings.features.cocina ? CocinaAbility : Ability
end

# In order for media authentication to work, the wowza server must have
# Access-Control-Allow-Credentials header set (which is set by default when CORS is enabled in wowza),
# which means that Access-Control-Allow-Origin cannot be set to * (wowza default) and instead
# needs to specify a host (e.g. the embed server of choice, presumably used in purl with
# particular stacks). This means that only the specified host will be granted credentialed requests.
def set_cors_headers
response.headers['Access-Control-Allow-Origin'] = Settings.cors.allow_origin_url
response.headers['Access-Control-Allow-Credentials'] = 'true'
end
end
2 changes: 1 addition & 1 deletion spec/controllers/file_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{
'filename' => 'xf680rd3068_1.jp2',
'access' => {
'view' => 'world',
'view' => 'stanford',
'download' => 'stanford'
}
}
Expand Down

0 comments on commit 62a36a5

Please sign in to comment.