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 27, 2023
1 parent 582dc1a commit 4426e9d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/EN_US/ContainerizedHPCC/ContainerizedMods/ConfigureValues.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,41 @@ thor:
categories, including the "ecl" category, are read internally by
system components and not exposed directly to ECL code.</para>
</sect3>

<sect3 id="CV_CrossOriginRes">
<title>Cross Origin Resource Handling</title>

<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. You can configure CORS support settings in the ESP section of
the values.yaml file as illustrated below: </para>

<programlisting>esp:
- name: eclwatch
application: eclwatch
auth: ldap
replicas: 1
# The following 'corsAllowed' section is used to configure CORS support
# origin - the origin to support CORS requests from
# headers - the headers to allow for the given origin via CORS
# methods - the HTTP methods to allow for the given origin via CORS
#
corsAllowed:
# origin starting with https will only allow https CORS
- origin: https://*.example2.com
headers:
- "X-Custom-Header"
methods:
- "GET"
# origin starting with http will allow http or https CORS
- origin: http://www.example.com
headers:
- "*"
methods:
- "GET"
- "POST" </programlisting>
</sect3>
</sect2>

<sect2>
Expand Down

0 comments on commit 4426e9d

Please sign in to comment.