From 4d1478892a2777f55406f837adf2e4d4f44c69d6 Mon Sep 17 00:00:00 2001 From: Peter Csajtai Date: Mon, 8 Jan 2024 20:35:11 +0100 Subject: [PATCH] More proxy docs update --- website/docs/advanced/proxy/endpoints.md | 32 ++++++++++++++---------- website/docs/advanced/proxy/grpc.md | 22 ++++++++++++++-- 2 files changed, 39 insertions(+), 15 deletions(-) diff --git a/website/docs/advanced/proxy/endpoints.md b/website/docs/advanced/proxy/endpoints.md index e9963e61..2ae669bb 100644 --- a/website/docs/advanced/proxy/endpoints.md +++ b/website/docs/advanced/proxy/endpoints.md @@ -317,7 +317,7 @@ CONFIGCAT_HTTP_CDN_PROXY_CORS_ALLOWED_ORIGINS_REGEX_PATTERNS='["https:\\/\\/.*do - List of regex patterns used to match allowed CORS origins. When it's set, the Proxy will match the request's Origin with the given regex patterns. When there's a match, the Access-Control-Allow-Origin response header will be set to the matched origin.
When there's no matching request origin, the Proxy will set the Access-Control-Allow-Origin response header to the if_no_match field's value. -
The if_no_match option is mandatory if this option is used. +
The if_no_match option is mandatory if this option is used.
When using the environment variable, the regex escape character must be doubled (\\) because it's parsed as a JSON list and \ is also a JSON escape character. @@ -399,13 +399,15 @@ This endpoint evaluates a single feature flag identified by a `key` with the giv "key": "", "user": { "Identifier": "", - "Email": "", - "Country": "", + "Rating": 4.5, + "Roles": ["Role1","Role2"], // any other attribute } } ``` +The type of the `user` object's fields can only be `string`, `number`, or `string[]`. + **Responses**: