« lib/IO/K8s/GatewayAPI/V1/HTTPBackendRef.pm
↑ Summary
lib/IO/K8s/GatewayAPI/V1/HTTPHeaderFilter.pm »
| 1 | package IO::K8s::GatewayAPI::V1::HTTPCORSFilter; | ||
| 2 | # ABSTRACT: CORS defines a schema for a filter that responds to the cross-origin request based on HTTP response header. | ||
| 3 | 2 | our $VERSION = '1.112'; | |
| 4 | 2 | ▶ | use IO::K8s::Resource; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | k8s allowCredentials => Bool; | |
| 7 | 2 | k8s allowHeaders => [Str], { pattern => '^[A-Za-z0-9!#$%&\'*+\\-.^_\\x60|~]+$' }; | |
| 8 | 2 | k8s allowMethods => [Str], { enum => ['GET','HEAD','POST','PUT','DELETE','CONNECT','OPTIONS','TRACE','PATCH','*'] }; | |
| 9 | 2 | k8s allowOrigins => [Str], { pattern => '(^\\*$)|(^(http(s)?):\\/\\/(((\\*\\.)?([a-zA-Z0-9\\-]+\\.)*[a-zA-Z0-9-]+|\\*)(:([0-9]{1,5}))?)$)' }; | |
| 10 | 2 | k8s exposeHeaders => [Str], { pattern => '^[A-Za-z0-9!#$%&\'*+\\-.^_\\x60|~]+$' }; | |
| 11 | 2 | k8s maxAge => Int, { minimum => 1, default => 5 }; | |
| 12 | |||
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | |||
| 18 | |||
| 19 | 2 | 1; | |
| 20 | |||
| 21 | __END__ | ||