Skip to content

Add CORS middleware for documentation site API access#113

Merged
dereuromark merged 1 commit intomasterfrom
feature/cors-middleware
Mar 15, 2026
Merged

Add CORS middleware for documentation site API access#113
dereuromark merged 1 commit intomasterfrom
feature/cors-middleware

Conversation

@dereuromark
Copy link
Owner

Summary

  • Add CorsMiddleware to allow cross-origin requests from trusted domains
  • Enables documentation sites to use sandbox APIs for interactive demos

Allowed Origins

Use Case

Documentation sites can now include interactive playgrounds that call sandbox APIs directly.
Without CORS headers, browsers block these cross-origin requests.

Allows cross-origin requests from trusted domains (php-collective.github.io
and sandbox.dereuromark.de) so documentation sites can use sandbox APIs
for interactive demos and playgrounds.
@dereuromark dereuromark merged commit 3226cb0 into master Mar 15, 2026
14 checks passed
@dereuromark dereuromark deleted the feature/cors-middleware branch March 15, 2026 01:03
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.

1 participant