Files
2025-06-23 10:52:22 -04:00

13 lines
294 B
Ruby

Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins "*"
# Allow CORS for the hackatime API endpoints
resource "/api/*",
headers: :any,
methods: [ :get, :post, :options ],
expose: [ "Authorization" ],
max_age: 600
end
end