Detect cors issue