Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPCC-28033 Document CORS Section of values.yaml #17817

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading