mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
15 lines
294 B
Ruby
15 lines
294 B
Ruby
# This file is used by Rack-based servers to start the application.
|
|
|
|
require ::File.expand_path('../config/environment', __FILE__)
|
|
run Rails.application
|
|
|
|
require 'rack/cors'
|
|
use Rack::Cors do
|
|
|
|
allow do
|
|
origins '*'
|
|
resource '*',
|
|
:headers => :any,
|
|
:methods => [:get]
|
|
end
|
|
end |