fixes
This commit is contained in:
@@ -20,10 +20,11 @@ module SXRestaurants
|
||||
|
||||
config.active_record.time_zone_aware_types = [:datetime, :time]
|
||||
config.active_job.queue_adapter = :sidekiq
|
||||
config.time_zone = 'Asia/Rangoon'
|
||||
config.time_zone = 'Asia/Yangon'
|
||||
config.autoload_paths << Rails.root.join('app/services')
|
||||
|
||||
|
||||
config.action_cable.disable_request_forgery_protection=true
|
||||
config.action_cable.allowed_request_origins = [/http:\/\/*/, /https:\/\/*/]
|
||||
config.middleware.insert_before ActionDispatch::Static, Rack::Cors do
|
||||
allow do
|
||||
origins '*'
|
||||
|
||||
@@ -54,7 +54,10 @@ Rails.application.configure do
|
||||
# routes, locales, etc. This feature depends on the listen gem.
|
||||
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||
|
||||
config.action_cable.disable_request_forgery_protection = true
|
||||
# config.action_cable.disable_request_forgery_protection = true
|
||||
config.action_cable.disable_request_forgery_protection=true
|
||||
config.action_cable.allowed_request_origins = [/http:\/\/*/, /https:\/\/*/]
|
||||
|
||||
# Set Cable URL
|
||||
# config.action_cable.url = "ws://192.168.1.196:3002/cable"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user