Files
aperonight/app/controllers/application_controller.rb
Kevin BATAILLE a8a8c55041 working on header
2025-08-28 14:27:06 +02:00

18 lines
743 B
Ruby
Executable File

# Base controller for the application
# Provides common functionality and security configurations for all controllers
class ApplicationController < ActionController::Base
# Protect against Cross-Site Request Forgery (CSRF) attacks
# Ensures that all non-GET requests include a valid authenticity token
protect_from_forgery with: :exception
# Restrict access to modern browsers only
# Requires browsers to support modern web standards:
# - WebP images for better compression
# - Web Push notifications
# - Badge API for notifications
# - Import maps for JavaScript modules
# - CSS nesting and :has() pseudo-class
# allow_browser versions: :modern
# allow_browser versions: { safari: 16.4, firefox: 121, ie: false }
end