Closed xmonader closed 4 years ago
The links which have cors:
I think we can keep it here https://github.com/threefoldtech/jumpscaleX_core/blob/development/JumpscaleCore/servers/gedis_http/GedisHTTPFactory.py
And just import it in every other place.
I thought of away to get a enable_cors decorator with optional allowed set of methods, but let's keep it for later.
I have reused the enable_cors implemented in GedisHTTPFactory.py and imported it into the other files.
tested by Rafay
Make enable_cors reusable instead of copying it