Sha256: be15ba8e165f2aa9eb4722b524ba4d84e37a2511690c1e64a5625993fd0b5dc9
Contents?: true
Size: 502 Bytes
Versions: 8
Compression:
Stored size: 502 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. #protect_from_forgery with: :exception after_filter :set_csrf_cookie def set_csrf_cookie if protect_against_forgery? cookies['XSRF-TOKEN'] = form_authenticity_token end end # Set P3P header - fuck you IE before_filter do response.headers['P3P'] = 'CP="CAO PSA OUR"' end def angular render 'layouts/application' end end
Version data entries
8 entries across 8 versions & 1 rubygems