Fix cors to check if req.methods === 'OPTIONS' to solve cors issues