diff --git a/config/application.rb b/config/application.rb index bf2db9c..582e934 100644 --- a/config/application.rb +++ b/config/application.rb @@ -13,7 +13,14 @@ module InvoiceKeeper # -- all .rb files in that directory are automatically loaded. config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}').to_s] config.i18n.default_locale = :pl - config.action_dispatch.default_headers['X-Frame-Options'] = "ALLOW-FROM http://lvh.me" + config.middleware.insert_before 0, Rack::Cors do + allow do + origins '*' + resource '*', :headers => :any, :methods => [:get, :post, :options] + end + end + + config.assets.paths << Rails.root.join('app', 'assets', 'fonts') config.assets.precompile += %w( .svg .eot .woff .ttf .otf .woff2 ) end