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).
Your contribution
Maybe we could pass list of origins separated by comma
CORS_ALLOW_ORIGIN=origin1,origin2CORS_ALLOW_ORIGIN=123.45.67.8:1234,123.45.67.8:1243
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).
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