Changes for #489 like there is no stable method to detect domain automatically we allow user to defined domain for which he is embeding a code