Read httponly cookie in SPA mode



  • Hi,
    I’m looking for way how to read cookie in SPA mode.
    I would like to read cookies best in boot set it with vuex and read on client.

    This is piece of cake in Nuxt plugin.

    export default ({ app, store, req }, inject) => {
      if (!process.browser) {
        // read cookie from req and set store
      }
    }
    

    I’m looking for something similar in quasar.

    Docs here are bit lacking https://v1.quasar-framework.org/quasar-plugins/cookies#Introduction there is use of cookie plugin in component but I can’t any place to execute it on server.


Log in to reply