Skip to content

Fixed the grand-central-cors middleware. - #866

Merged
goat-ssh merged 1 commit into
masterfrom
s/fix-gc-cors
Jul 22, 2026
Merged

Fixed the grand-central-cors middleware.#866
goat-ssh merged 1 commit into
masterfrom
s/fix-gc-cors

Conversation

@goat-ssh

Copy link
Copy Markdown
Contributor

Summary of changes

Switch the default case to accessControlAllowOriginListRegex: [".*"] when spec.cluster.settings.http.cors.allow-origin is not set (which might be the case on older clusters)

/account/organizations/21095b48-a276-46a7-95fd-64479f4d409d/projects/fc7ada71-5d28-4d49-8203-ff4649dbd13c/clusters/5e52d9b3-3b92-4568-a3a4-620ed9d1d445/monitoring/cluster:1 
Access to fetch at 'https://devbrain.gc.aks1.eastus2.azure.cratedb.net/api/health' from origin 'https://console.cratedb.cloud' has been blocked by CORS policy:
The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.

Checklist

  • Link to issue this PR refers to:
  • Relevant changes are reflected in CHANGES.rst
  • Added or changed code is covered by tests
  • Documentation has been updated if necessary
  • Changed code does not contain any breaking changes (or this is a major version change)

Switch the default case to accessControlAllowOriginListRegex: [".*"]
when ``spec.cluster.settings.http.cors.allow-origin`` is not set (which might be the case on older clusters)
@goat-ssh
goat-ssh requested a review from tomach July 21, 2026 13:49
@goat-ssh
goat-ssh merged commit 9f8ea09 into master Jul 22, 2026
16 checks passed
@goat-ssh
goat-ssh deleted the s/fix-gc-cors branch July 22, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants