12 lines
395 B
Ruby
12 lines
395 B
Ruby
class ApplicationController < ActionController::Base
|
|
include Authentication
|
|
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
|
|
allow_browser versions: :modern
|
|
|
|
# Changes to the importmap will invalidate the etag for HTML responses
|
|
stale_when_importmap_changes
|
|
|
|
# CSRF protection
|
|
protect_from_forgery with: :exception
|
|
end
|