diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index fd8e1a3f5..e673c5386 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -18,13 +18,13 @@ Rails.application.config.middleware.insert_before 0, Rack::Cors do allow do origins "https://explorer.nervos.org", - "https://explorer-testnet.nervos.org", - "https://aggron.explorer.nervos.org", - "https://pudge.explorer.nervos.org", - "https://staging.explorer.nervos.org", - /\Ahttps:\/\/ckb-explorer-.*-magickbase.vercel.app\z/, - "http://localhost:3000", - (ENV["STAGING_DOMAIN"]).to_s - resource "*", headers: :any, methods: [:get, :post, :head, :options] + "https://explorer-testnet.nervos.org", + "https://aggron.explorer.nervos.org", + "https://pudge.explorer.nervos.org", + "https://staging.explorer.nervos.org", + /\Ahttps:\/\/ckb-explorer-.*-magickbase.vercel.app\z/, + "http://localhost:3000", + (ENV["STAGING_DOMAIN"]).to_s + resource "*", headers: :any, methods: [:get, :post, :put, :head, :options] end end