- Remove loopback HTTP exception; withBaseUrl now accepts only HTTPS URLs targeting api.cloudflare.com
- Reject base URLs containing user info, query strings, or fragments - Update README example and changelog to reflect the stricter policy - Adapt tests to use the private CfDnsClient constructor for local HTTP servers - Bump version from 1.0.0-rc.1-SNAPSHOT to 1.0.0-SNAPSHOT in pom.xml and changelog Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
1 parent
5488a92c2d
commit
b35517afa7
6 files changed
+31
-56
No files matched your search
@@ -66,7 +66,7 @@ CfDnsClient cfDnsClient = new CfDnsClientBuilder()
|
||||
```java
|
||||
CfDnsClient cfDnsClient = new CfDnsClientBuilder()
|
||||
.withApiTokenAuth("your-api-token")
|
||||
.withBaseUrl("https://custom-api.example.com/client/v4") // HTTPS required; HTTP allowed only for loopback hosts
|
||||
.withBaseUrl("https://api.cloudflare.com/client/v4") // HTTPS required;
|
||||
.withConnectTimeout(Duration.ofSeconds(5)) // default: 10 s
|
||||
.withResponseTimeout(Duration.ofSeconds(15)) // default: 30 s
|
||||
.withEmptyResultThrowsException(true) // default: false
|
||||
|
||||
Reference in new issue
Block a user