Skip to content

multiple origins #1941

Open
Open
@LukaszHem

Description

@LukaszHem

Feature request

Using CORS_ALLOW_ORIGIN I was able to set single origin to avoid CORS issues.
CORS_ALLOW_ORIGIN=123.45.67.8:1234
How do I set it up for multiple origins?

Motivation

I want to use TGI to from multiple origins.
I could set up proxy between TGI and my TGI clients, but that looks like a hacky solution. It gets even hackier when you need to use streaming (which I need to do).
Additionally proxy solution will cause problems, when you try to use TGI with agents.

Your contribution

Maybe we could pass list of origins separated by comma
CORS_ALLOW_ORIGIN=origin1,origin2
CORS_ALLOW_ORIGIN=123.45.67.8:1234,123.45.67.8:1243

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions