-
Enhancement
-
Resolution: Done
-
Major
-
7.12.0.GA
-
None
-
False
-
False
-
Documentation (Ref Guide, User Guide, etc.)
-
CR1
-
-
-
-
-
-
CR2
-
Undefined
-
---
-
---
-
-
2021 Week 04-06 (from Jan 25), 2021 Week 07-09 (from Feb 15), 2021 Week 10-12 (from Mar 8), 2021 Week 13-15 (from Mar 29), 2021 Week 16-18 (from Apr 19), 2021 Week 19-21 (from May 10), 2021 Week 22-24 (from May 31), 2021 Week 25-27 (from Jun 21), 2021 Week 28-30 (from Jul 12), 2021 Week 31-33 (from Aug 2)
Today, to enable CORS on operator or templates, we need to specify a few environment variable in order to set it:
- name: FILTERS value: "AC_ALLOW_ORIGIN,AC_ALLOW_METHODS,AC_ALLOW_HEADERS,AC_ALLOW_CREDENTIALS,AC_MAX_AGE" - name: AC_ALLOW_ORIGIN_FILTER_RESPONSE_HEADER_NAME value: "Access-Control-Allow-Origin" - name: AC_ALLOW_ORIGIN_FILTER_RESPONSE_HEADER_VALUE value: "*" - name: AC_ALLOW_METHODS_FILTER_RESPONSE_HEADER_NAME value: "Access-Control-Allow-Methods" - name: AC_ALLOW_METHODS_FILTER_RESPONSE_HEADER_VALUE value: "GET, POST, OPTIONS, PUT" - name: AC_ALLOW_HEADERS_FILTER_RESPONSE_HEADER_NAME value: "Access-Control-Allow-Headers" - name: AC_ALLOW_HEADERS_FILTER_RESPONSE_HEADER_VALUE value: "Accept, Authorization, Content-Type, X-Requested-With" - name: AC_ALLOW_CREDENTIALS_FILTER_RESPONSE_HEADER_NAME value: "Access-Control-Allow-Credentials" - name: AC_ALLOW_CREDENTIALS_FILTER_RESPONSE_HEADER_VALUE value: "true" - name: AC_MAX_AGE_FILTER_RESPONSE_HEADER_NAME value: "Access-Control-Max-Age" - name: AC_MAX_AGE_FILTER_RESPONSE_HEADER_VALUE value: "1"
Would be great to make it easier and allow user to customize/override the default options.
- clones
-
RHDM-1489 Configure CORS automatically through a flag or environment variable
- Closed