Update Foundry CORS proxy endpoint to foundry-cors-proxy#833
Closed
MaanavD wants to merge 2 commits into
Closed
Conversation
Repoint the website's model catalog proxy from the old onnxruntime-foundry-proxy Function App to the newly deployed foundry-cors-proxy Function App. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@MaanavD is attempting to deploy a commit to the MSFT-AIP Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the website's hardcoded CORS proxy endpoint for the Azure AI Foundry model catalog API, repointing it from the old Function App URL to the newly deployed foundry-cors-proxy Function App. It is a simple, low-risk configuration update affecting only the website (www/).
Changes:
- Update the hardcoded
FOUNDRY_API_ENDPOINTconstant in the model catalog service. - Update the matching commented example for
PUBLIC_FOUNDRY_API_ENDPOINTin the env example file.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
www/src/routes/models/service.ts |
Updates the active FOUNDRY_API_ENDPOINT constant used by the catalog fetch calls to the new proxy URL. |
www/.env.example |
Updates the documentation/example env var to match the new proxy URL. |
Creates a no-op commit to request a fresh Vercel deployment for PR microsoft#833 without changing source content. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Collaborator
Author
|
Replaced by #842, which uses an upstream branch instead of a fork branch so Vercel can deploy without the fork authorization gate. |
auto-merge was automatically disabled
June 25, 2026 19:05
Pull request was closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Repoints the website's model catalog CORS proxy from the old Function App to the newly deployed one:
https://onnxruntime-foundry-proxy-hpape7gzf2haesef.eastus-01.azurewebsites.net/api/foundryproxyhttps://foundry-cors-proxy.azurewebsites.net/api/foundryproxyWhy
The proxy was redeployed to a new Azure Function App (
foundry-cors-proxy) in an enterprise subscription. The new app is live and serving the same anonymous CORS proxy to the Azure AI Foundry model catalog API.Changes
www/src/routes/models/service.ts— update the hardcodedFOUNDRY_API_ENDPOINT.www/.env.example— update the commentedPUBLIC_FOUNDRY_API_ENDPOINTexample to match.Verification
The new endpoint was smoke-tested after deployment:
OPTIONSpreflight →200with CORS headers (Access-Control-Allow-Origin: *,Access-Control-Allow-Methods,Access-Control-Allow-Headers).POST→ forwards to Foundry and returns the upstream response verbatim (confirmed the proxy reachesai.azure.com).Anonymous access only — no auth token required, consistent with the previous deployment.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com