Sha256: 590a53d05f8356b254de79c56bf9cb0f99fab674cae774347ffa710e893bc838

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

# This file is used by Rack-based servers to start the application.

require ::File.expand_path('config/environment', __dir__)
run Rails.application

# allow cross origin requests
require 'rack/cors'
use Rack::Cors do
  allow do
    origins '*'
    resource '*',
             headers: :any,
             expose: %w[access-token expiry token-type uid client],
             methods: %i[get post options delete put]
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
devise_jwt_auth722-0.1.7 test/dummy/config.ru
devise_jwt_auth7-0.1.7 test/dummy/config.ru
devise_jwt_auth-0.1.7 test/dummy/config.ru
devise_jwt_auth-0.1.6 test/dummy/config.ru