some updates
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Qwaiter::Application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb
|
||||
|
||||
@@ -7,13 +9,12 @@ Qwaiter::Application.configure do
|
||||
config.cache_classes = false
|
||||
config.middleware.insert_before 0, Rack::Cors do
|
||||
allow do
|
||||
origins 'localhost', 'supplier.mozo.local', 'user.mozo.local', 'events.mozo.local'
|
||||
origins 'https://localhost:4202', 'https://localhost:4201', 'http://localhost:9296', 'supplier.mozo.local', 'user.mozo.local', 'events.mozo.local'
|
||||
#resource '/user/*', :headers => '*', :methods => '*' #[:get, :post, :options]
|
||||
resource '*', headers: :any, methods: [:get, :post, :put, :patch, :delete, :options]
|
||||
resource '*', headers: :any, methods: %i[get post put patch delete options]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# Do not eager load code on boot.
|
||||
config.eager_load = false
|
||||
|
||||
@@ -24,7 +25,7 @@ Qwaiter::Application.configure do
|
||||
|
||||
#config.ember.variant = :development
|
||||
|
||||
config.action_controller.asset_host = "https://localhost:3002"
|
||||
config.action_controller.asset_host = 'https://localhost:3002'
|
||||
config.force_ssl = true
|
||||
|
||||
# config.web_console.automount = true
|
||||
|
||||
Reference in New Issue
Block a user