No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    devserver not set cookies?

    Help
    1
    3
    882
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      conx last edited by

      Hei!
      When using default devserver in localhost port :8080 and external data server, browser not set cookies.
      In response header :
      set-cookie: tools.sess=s%3A17285b06-1422-4955-a94d-7f120c496a7a.3GqyYAKtIGv7icPQt01hVJ01d1CWsE8Z2Cxsh%2BX8G9s; Path=/; HttpOnly
      When i do and use prod an all in one server all fine…

      C 1 Reply Last reply Reply Quote 0
      • C
        conx @conx last edited by

        That maybe is solution:

        Vue.prototype.$axios = axios.create({
        withCredentials: true  })
        C 1 Reply Last reply Reply Quote 0
        • C
          conx @conx last edited by conx

          Thats worked (all external server request ‘/api’ with proxy) in ‘quasar.conf.js’:

          devServer: {
            proxy: {
              '/api': {
                target: 'https://localhost:3000',
                secure: false
              }
          }
          1 Reply Last reply Reply Quote 0
          • First post
            Last post