tried integrating CORS into if else statement
vendor compiled assets