Added cors api for cross origin resource service