fix: Add base_url to the audio notification file (#4116)

This commit is contained in:
Nithin David Thomas
2022-03-10 20:40:47 +05:30
committed by GitHub
parent 647efa12e7
commit 3c3b6f90c7
7 changed files with 9 additions and 4 deletions

View File

@@ -82,6 +82,7 @@ Rails.application.configure do
allow do
origins '*'
resource '/packs/*', headers: :any, methods: [:get, :options]
resource '/dashboard/audios/ding.mp3', headers: :any, methods: [:get, :options]
resource '*', headers: :any, methods: :any, expose: ['access-token', 'client', 'uid', 'expiry']
end
end

View File

@@ -121,6 +121,7 @@ Rails.application.configure do
allow do
origins '*'
resource '/packs/*', headers: :any, methods: [:get, :options]
resource '/dashboard/audios/ding.mp3', headers: :any, methods: [:get, :options]
if ActiveModel::Type::Boolean.new.cast(ENV.fetch('CW_API_ONLY_SERVER', false))
resource '*', headers: :any, methods: :any, expose: ['access-token', 'client', 'uid', 'expiry']
end

View File

@@ -87,6 +87,7 @@ Rails.application.configure do
allow do
origins '*'
resource '/packs/*', headers: :any, methods: [:get, :options]
resource '/dashboard/audios/ding.mp3', headers: :any, methods: [:get, :options]
end
end
end

View File

@@ -58,6 +58,7 @@ Rails.application.configure do
allow do
origins '*'
resource '/packs/*', headers: :any, methods: [:get, :options]
resource '/dashboard/audios/ding.mp3', headers: :any, methods: [:get, :options]
end
end
end