Snapmaker2-Controller icon indicating copy to clipboard operation
Snapmaker2-Controller copied to clipboard

Enable cross-origin resource sharing

Open loranger opened this issue 3 years ago • 0 comments

Hi, I'm trying to fetch my Snapmaker 2 status from a very simple javascript app, but failed because there is no CORS header allowing webpage to request and consume json output from api.

Would you please consider to add CORS headers for /api/ HTTP calls ?

Thanks

loranger avatar Sep 15 '22 19:09 loranger