Skip to content

Add WIGOLO_SERVE_ALLOW_ORIGIN env var to skip Origin check on MCP transport #392

Description

@UralterMann3

What are you trying to do?

When running wigolo behind a web-based MCP client (e.g. AionUi), the client sends a browser Origin header. The hardcoded Origin rejection in mcpTransportRejected() blocks this, even with a valid bearer token.

What would you like wigolo to do?

Add an env var like WIGOLO_SERVE_ALLOW_ORIGIN=1 to skip the Origin check when a token is configured.

What do you do today instead?

nothing by now.

I will try nginx als proxy with manipulation
proxy_set_header Origin "";

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions