[REF] move to flask cors in order to be more generic