cors.rb 581 B

123456789101112131415161718
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. # Be sure to restart your server when you modify this file.
  3. # Avoid CORS issues when API is called from the frontend app.
  4. # Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin Ajax requests.
  5. # Read more: https://github.com/cyu/rack-cors
  6. # Rails.application.config.middleware.insert_before 0, Rack::Cors do
  7. # allow do
  8. # origins "example.com"
  9. #
  10. # resource "*",
  11. # headers: :any,
  12. # methods: [:get, :post, :put, :patch, :delete, :options, :head]
  13. # end
  14. # end