Added allow origin for localhost queries