mosecorg / mosec

A high-performance ML model serving framework, offers dynamic batching and CPU/GPU pipelines to fully exploit your compute machine
https://mosecorg.github.io/mosec/
Apache License 2.0
780 stars 60 forks source link

feat: CORS support ? #519

Open aseaday opened 6 months ago

aseaday commented 6 months ago

Describe the feature

Can I configure cors directly?

Why do you need this feature?

I do not need extra proxy

Additional context

No response

kemingy commented 6 months ago

So far, mosec doesn't support adding customized HTTP headers. I'm not sure if the ML model services should be directly accessed by the browser. But PRs are welcomed. cc @lkevinzc