Skip to content

(fix): Document cors_origins and anonymous configuration options#5575

Open
catplat wants to merge 1 commit into
mainfrom
fix/mercure-cors-anonymous-config-options
Open

(fix): Document cors_origins and anonymous configuration options#5575
catplat wants to merge 1 commit into
mainfrom
fix/mercure-cors-anonymous-config-options

Conversation

@catplat
Copy link
Copy Markdown
Collaborator

@catplat catplat commented May 12, 2026

Why

Closes #{ISSUE_NUMBER}

What's changed

  • Adds a new Configuration options section documenting the anonymous and cors_origins keys, with a reference YAML example and an options table.
  • Rewrites the routing step to present sub-path and subdomain routes as explicit, labeled choices rather than a single example — and adds a warning explaining why sub-path routing is required for browser clients (CORS), with a note on the anti-pattern of hardcoding domain names in cors_origins.

The equivalent change has also been made to the Upsun Flex topic.

Where are changes

https://fixed.docs.upsun.com/add-services/mercure.html

Updates are for:

  • platform (sites/platform templates)
  • upsun (sites/upsun templates)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Your Upsun Fixed environment has successfully deployed. 🚀

See the changed pages:

Upsun Fixed docs
Upsun docs

@catplat catplat requested a review from ralt May 12, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants