mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-06 06:21:44 +02:00
clarified cors wildcard support
This commit is contained in:
1 parent
2ae117228e
commit
211b9645ee
1 file changed
+5
-3
@@ -31,9 +31,11 @@ const (
|
|||||||
// CORSConfig defines the config for CORS middleware.
|
// CORSConfig defines the config for CORS middleware.
|
||||||
type CORSConfig struct {
|
type CORSConfig struct {
|
||||||
// AllowOrigins determines the value of the Access-Control-Allow-Origin
|
// AllowOrigins determines the value of the Access-Control-Allow-Origin
|
||||||
// response header. This header defines a list of origins that may access the
|
// response header. This header defines a list of origins that may access the
|
||||||
// resource. The wildcard characters '*' and '?' are supported and are
|
// resource.
|
||||||
// converted to regex fragments '.*' and '.' accordingly.
|
//
|
||||||
|
// The wildcard characters '*' and '?' are supported as subdomain segments
|
||||||
|
// and are converted to regex fragments '.*' and '.' accordingly.
|
||||||
//
|
//
|
||||||
// Security: use extreme caution when handling the origin, and carefully
|
// Security: use extreme caution when handling the origin, and carefully
|
||||||
// validate any logic. Remember that attackers may register hostile domain names.
|
// validate any logic. Remember that attackers may register hostile domain names.
|
||||||
|
|||||||
Reference in new issue
Block a user