Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added WPCOM authentication header to first request (gatsbyjs#8110)
* Added WPCOM authentication header to first request When hosted on a WPCOM private blog, the first request fetching the valid routes from the API must be authenticated. I fixed this by attaching the Authorization header along with the Bearer auth token we got. Also, having an auth set when doing this request did not work. Removing the options.auth when uneccessary (i.e. no credentials given) worked. * fix linting
- Loading branch information