Newer
Older
Website-backend / config / initializers / cors.rb
@lukas lukas on 3 Apr 2022 173 bytes initial commit
Rails.application.config.middleware.insert_before 0, Rack::Cors do
    allow do
        origins 'localhost'
        resource '*', headers: :any, methods: [:post]
    end
end