storyblok / storyblok-vue

Vue.js SDK for Storyblok CMS
MIT License
95 stars 20 forks source link

"Headers is not defined" when using storyblokApi.get() #251

Closed SebbeJohansson closed 9 months ago

SebbeJohansson commented 1 year ago

"Headers is not defined" is thrown when using storyblokApi.get()

image

Expected Behavior

I expect the function to run just fine.

Current Behavior

It errors.

Steps to Reproduce

  1. Clone https://github.com/SebbeJohansson/storyblok-nuxt-ultimate-template/tree/feature/proper-prerendering
  2. Open terminal.
  3. Run yarn deploy
SebbeJohansson commented 1 year ago

This issue seems to be orginating from storyblok/storyblok-js as shown in https://github.com/storyblok/storyblok-js/issues/256

Dawntraoz commented 9 months ago

Closing the issue since this was tackled in the JS SDK with the FAQ of the workaround -> https://www.storyblok.com/faq/headers-not-defined-storyblok-sdk