Skip to content

Commit

Permalink
HPCC-28033 Document CORS Section of values.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: g-pan <[email protected]>
  • Loading branch information
g-pan committed Sep 26, 2023
1 parent 0311a3d commit a71db7e
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1030,10 +1030,8 @@ thor:
<para>Cross-origin resource sharing (CORS) is a mechanism for
integrating applications in different domains. CORS defines how client
web applications in one domain can interact with resources in another
domain. As a further enhancement to HPCC Systems we've added support
to allow the configuration of CORS access settings to the ESP section
of the values.yaml file. These CORS support settings can be configured
as illustrated in the following example.</para>
domain. You can configure CORS support settings in the ESP section of
the values.yaml file as illustrated below: </para>

<programlisting>esp:
- name: eclwatch
Expand All @@ -1047,9 +1045,9 @@ thor:
#
corsAllowed:
# origin starting with https will only allow https CORS
- origin: https://*.my.com
- origin: https://*.example2.com
headers:
- "X-X"
- "X-Custom-Header"
methods:
- "GET"
# origin starting with http will allow http or https CORS
Expand Down

0 comments on commit a71db7e

Please sign in to comment.