Skip to content

Commit

Permalink
document valid port values in origin patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
jub0bs committed Feb 8, 2024
1 parent 82d4e4f commit 9d1e0c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fcors.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ func AllowAccessWithCredentials(one Option, others ...Option) (Middleware, error
// http://[0:0:0:0:0:0:0:0001]:9090 // prohibited
// http://[0000:0000:0000:0000:0000:0000:0000:0001]:9090 // prohibited
//
// Valid port values range from 1 to 65,535 (inclusive):
//
// https://example.com // permitted (no port)
// https://example.com:1 // permitted
// https://example.com:65535 // permitted
// https://example.com:0 // prohibited
// https://example.com:65536 // prohibited
//
// Default ports (80 for http, 443 for https) must be elided:
//
// http://example.com // permitted
Expand Down

0 comments on commit 9d1e0c6

Please sign in to comment.