Connection problem due to lack of CORS support in Triton Server, which blocks requests from frontend web applications #8371
Replies: 3 comments 1 reply
-
|
With the exception of our OpenAI Frontend, Triton Server doesn't support CORS policy. The best approach would likely be to rely on an intermediary, like a reverse proxy, to append any necessary headers. In the case of health checks, this could be more complicated than it's worth. I am curious as to what system is requiring CORS for health checks? |
Beta Was this translation helpful? Give feedback.
-
@whoisj The system is this:
Most if not all web browsers will use strict CORS policy checking for security purposes. So the error is being seen by the javascript client code being run on the user's browser. |
Beta Was this translation helpful? Give feedback.
-
|
@Lizbeth-2Hernandez does my explanation clarify things for you? if so, can this issue be closed? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Lack of native support for CORS (Cross-Origin Resource Sharing) in Triton Inference Server 23.10, which prevents direct integration with web frontend applications running on different domains. HTTP requests from web browsers (localhost:3000) to Triton Server (localhost:8000) are blocked by CORS security policies.
Environment
TensorRT Version: 23.10-py3
GPU Type: Included in container 23.10
Nvidia Driver Version: 535.154.05
CUDA Version:12.2
CUDNN Version: 8.9.5
Operating System + Version: Ubuntu 22.04.3 LTS
Python Version (if applicable): 3.10
Baremetal or Container (if container which image + tag): nvcr.io/nvidia/tritonserver:23.10-py3
Relevant Files
Technical Issue Report - Triton Inference Server - Google Drive
Steps To Reproduce
1. Environment Setup
2. Execution of Triton Server
3. Server Verification
4. Execution of the Frontend Application
5. Error Reproduction
Full Trace of Errors
Error in Browser (Console)
Triton Server Logs (Technical Success)
Missing Response Headers
CORS Configuration Attempt (Error)
Resulting error:
tritonserver: unrecognized option '--cors-allow-origin=http://localhost:3030'Beta Was this translation helpful? Give feedback.
All reactions