Skip to content

Commit

Permalink
chore: make put method cors (#1486)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid authored Oct 24, 2023
1 parent 75dd3f1 commit b1f3b2c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions config/initializers/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b1f3b2c

Please sign in to comment.