Under stack settings, go to Live Preview, tick enable live preview and select a Default Preview Environment.
Go to Environment settings and add the base URL (hosted website URL) in that environment’s settings.This hosted website should be fetching data from the same environment.