back/app/controllers/referrals_controller.rb
#
# Hook used after successful oAuth authorization to claim the referral token stored in the browser
# Happens just before redirecting to the app
# (see initializers/doorkeeper_redirect.rb)
#
Hook used after successful oAuth authorization to claim the referral token stored in the browser
Happens just before redirecting to the app
Hook used after successful oAuth authorization to claim the referral token stored in the browser Happens just before redirecting to the app
def post_auth_hook
    response.headers['X-FRAME-OPTIONS'] = 'ALLOWALL'
  end
def post_auth_hook response . headers [ 'X-FRAME-OPTIONS' ] = 'ALLOWALL' end
Hook used after successful oAuth authorization to claim the referral token stored in the browser
Happens just before redirecting to the app
(see initializers/doorkeeper_redirect.rb)
Hook used after successful oAuth authorization to claim the referral token stored in the browser Happens just before redirecting to the app ( see initializers / doorkeeper_redirect . rb )
# XXX use the same logic as the one responsible for CORS headers in config/application.rb to # decide whether or not to send this header ? # and use "ALLOW-FROM #{domain}"