Class: Rage::OriginValidator
- Inherits:
-
Object
- Object
- Rage::OriginValidator
- Defined in:
- lib/rage/middleware/origin_validator.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, *allowed_origins) ⇒ OriginValidator
constructor
A new instance of OriginValidator.
Constructor Details
#initialize(app, *allowed_origins) ⇒ OriginValidator
Returns a new instance of OriginValidator.
4 5 6 7 |
# File 'lib/rage/middleware/origin_validator.rb', line 4 def initialize(app, *allowed_origins) @app = app @validator = build_validator(allowed_origins) end |