-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: improve tests and add CorsHeader constants
- Loading branch information
3m5/frohberg
committed
Oct 22, 2024
1 parent
ad79d13
commit a21f0c5
Showing
3 changed files
with
152 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Flowpack\Cors\Domain; | ||
|
||
class CorsHeader { | ||
public const ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin'; | ||
public const ACCESS_CONTROL_ALLOW_HEADERS = 'Access-Control-Allow-Headers'; | ||
public const ACCESS_CONTROL_ALLOW_METHODS = 'Access-Control-Allow-Methods'; | ||
public const ACCESS_CONTROL_ALLOW_CREDENTIALS = 'Access-Control-Allow-Credentials'; | ||
public const ACCESS_CONTROL_MAX_AGE = 'Access-Control-Max-Age'; | ||
public const ACCESS_CONTROL_REQUEST_METHOD = 'Access-Control-Request-Method'; | ||
public const ACCESS_CONTROL_REQUEST_HEADERS = 'Access-Control-Request-Headers'; | ||
public const ACCESS_CONTROL_EXPOSE_HEADERS = 'Access-Control-Expose-Headers'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters