faustjs
faustjs copied to clipboard
Faust ExperimentalToolbar still causes 401 Unauthorized error
Description
I know this topic was discussed already in various issues that are mainly closed. This is just to bring more attention to my previous comment and confirm that this issues is still present, and I have just reproduced it again with the latest packages and faust example setup on the front end (where ExperimentalToolbar is already set to true by default).
Steps to reproduce
- Set up vanilla Wordpress on http protocol and some example vhost.
- Install, activate and setup necessary plugins: FaustWp and WPGraphQL
- Set up FE by executing
-e https://github.com/wpengine/faustjs/tree/canary \
--example-path examples/next/faustwp-getting-started \
--use-npm
- Set env values on the front end
- Log into the backend and click on view page link on pages list in the admin to see that page on the new tab, you should not see toolbar as you were not authenticated, and will get the mentioned console.error
- if you click on the preview link, you can see toolbar, as you were properly authenticated and there will be no console.error
- If you set
ExperimentalToolbar: falseyou will not be able to replicate console.error
Additional context
No response
@faustwp/core Version
3.0.3
@faustwp/cli Version
3.0.2
FaustWP Plugin Version
1.3.2
WordPress Version
6.6.1
Additional environment details
No response
Please confirm that you have searched existing issues in the repo.
- [X] Yes