Skip to content

Conversation

alxfed
Copy link

@alxfed alxfed commented Aug 19, 2025

Summary

The versions of Chrome browser after 130 require an additional header "Access-Control-Allow-Private-Network": "true" in PREFLIGHT interaction if you are trying to access f.i. a https://localhost resources, where uvicorn / starlette application is running. They promised to start blocking these requests altogether, but didn't, it's just a warning, but a very annoying one.
This is important for the current generation of AI applications if a local server with a Starlette application (not the MCP with FastApi) is used for interactions with a web-based AI application.

The allow_private_network parameter has been added to cors.py and the doc.

Checklist

  • [ *] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • [ *] I've updated the documentation accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant