replacing cors package by a self made function