When fetching from ?stage=Stage which, would obviously be ideal as anyone would like to know how it scores before it's published... we're presented with an authentication issue that is only logged in users are able to see ?stage=Stage whereas file_get_contents() doesn't allow that.
Moving forward, maybe we could tokenize an authenticated request using HTTPMiddleware and pass it along with the file_get_contents call.
Currently, with this; the "new page" bug is fixed; but will still display "Login" in the preview until the page is published.
When fetching from ?stage=Stage which, would obviously be ideal as anyone would like to know how it scores before it's published... we're presented with an authentication issue that is only logged in users are able to see ?stage=Stage whereas file_get_contents() doesn't allow that.
Moving forward, maybe we could tokenize an authenticated request using HTTPMiddleware and pass it along with the file_get_contents call.
Currently, with this; the "new page" bug is fixed; but will still display "Login" in the preview until the page is published.