Blaizzy / fastmlx

FastMLX is a high performance production ready API to host MLX models.
Other
159 stars 12 forks source link

Cross origin support #2

Closed digicali closed 2 months ago

digicali commented 2 months ago

Will be sweet to add Cross origin support to allows an IP address to be used or a secure domain

Like LMStudio or Jan Server. Allows inference servers to be used by developers with a fixed IP address or a secure domain.

Screenshot 2024-07-09 at 15 35 35
Blaizzy commented 2 months ago

Hey @digicali

Thanks for bringing this up!

I have looked into it and proposed this PR #4

Can you check and let me know if this solves your issue?

Blaizzy commented 2 months ago

Example:

fastmlx --allowed-origins http://localhost:3000 http://127.0.0.1:3000
digicali commented 2 months ago

Should be good enough!

Blaizzy commented 2 months ago

Perfect!

I will merge it and release it 🚀