Skip to content

Github MCP server not working with a web based MCP client. CORS issue #1321

@dsn12311

Description

@dsn12311

Describe the bug

I have a web based IDE as an MCP client, that allows for remote MCP server configuration. It doesn't work for remote MCP server. MCP client works for another remote MCP server.

Access to fetch at 'https://api.githubcopilot.com/mcp/' from origin 'https://awesome.myinstance.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Have the server send the header with a valid value

Affected version

remote MCP server URL https://api.githubcopilot.com/mcp/

Steps to reproduce the behavior

  1. web based MCP client
  2. connect Github MCP remote server.

Expected vs actual behavior

CORS issue. It should work like it works on desktop based MCP client.

Logs

Access to fetch at 'https://api.githubcopilot.com/mcp/' from origin 'https://awesome.myinstance.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Have the server send the header with a valid value

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions