1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 1.2.0 (2022-02-20)
### Changed
- Drop support for PHP 7.2/7.3 and legacy Symfony HttpFoundation versions.
- Used TypedProperties instead of manual validation
## 1.1.0 (2022-02-20)
### Added
- setOptions() method to overwrite or set the options later.
## 1.0.0 (2020-02-19)
### Changed since split from asm89/stack-cors
- Renamed Asm89\Stack namespace to Fruitcake\Cors
- Removed HttpKernel middleware
### New Features
- Allow underscore options (both `allowed_origins` and `allowedOrigins` are allowed)
- Support wildcard patterns on AllowedOrigins (eg `https://*.example.com` will be converted to an allowedOriginPattern)
- Validate input (so invalid options are caught immediately)
- Bump PHPStan to Level 9
- Ensure 100% Code Coverage
|