snowzach / doods

DOODS - Dedicated Open Object Detection Service
MIT License
303 stars 31 forks source link

CORS support #34

Closed depuits closed 3 years ago

depuits commented 3 years ago

Would it be possible to add support for Cross-Origin Resource Sharing. This way you would be able to call the API directly from a website.

snowzach commented 3 years ago

Okay... I tried adding it.. give it a shot and let me know.

depuits commented 3 years ago

Thx it's working, I thought you would have added it as on option or config, but it works like this. Now my visualizer works locally without the need for another backend relay server.

snowzach commented 3 years ago

It is a config option. I just made it default to pretty open. Glad it worked. Super cool idea.