Add localhost to resource url white list