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
custom REST CORS header configuration is not applied to responses #26391
Comments
Cloud support ticket https://dotcms.zendesk.com/agent/tickets/113022 |
Note To QA and Doc Let's now add the properties like: This means using an underscore instead of a hyphen. |
A quick test looks good for
returns
I found that the example in the docs for a
does not change the default headers for
New ticket created for specific resources: #26503 |
* fix: pull system envs for cors ref#26391 * test: add test for config changes ref: #26391
Parent Issue
No response
Problem Statement
CORS header config changes are not working - the default headers remain unchanged.
Custom CORS header config like
has no effect on the default headers
I found that setting global DEFAULT headers appeared to work on 5.3.8, but per-resource headers may not.
Steps to Reproduce
Fetch default headers
curl -ks -X OPTIONS --head http://127.0.0.1:8082/api/v1/contenttype | grep -i access-control
Add Docker environment variables such as
Restart - dotCMS CORS header response does not change.
Acceptance Criteria
REST CORS headers should be configurable.
It would be nice extend this functionality as well, for example being able to support multiple Origin hosts.
dotCMS Version
LTS 21.06 22.03 23.01 and agile
It appears this worked, at least partially, in 5.3.8.
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: