Skip to content

Commit 2d3d9e7

Browse files
chore(docs): improve security documentation (#59)
1 parent 80ff63b commit 2d3d9e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

option/requestoption.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import (
2424
type RequestOption = requestconfig.RequestOption
2525

2626
// WithBaseURL returns a RequestOption that sets the BaseURL for the client.
27+
//
28+
// For security reasons, ensure that the base URL is trusted.
2729
func WithBaseURL(base string) RequestOption {
2830
u, err := url.Parse(base)
2931
if err != nil {

0 commit comments

Comments
 (0)