Quasar v2 SSR axios base url changes after refresh #11547
-
|
Hello there, I am using Quasar v2 and have problem with Axios.. Everything works fine unless I refresh the page. Here is the boot file; and on my quasar conf file, All of the pages need auth, so if I refresh app it checks the token and if there is a token app starts with /index page. Only one page is public and at that page I don't have any auth protection. Page gets the information by prefetch, which works fine if i go that page via index page, however if i refresh app on that page, boom! app crashes. This is the prefetch; My backend is different than my frontend domain, but when I refresh the app I see that my axios try to call front end domain. This is my vuex code; I also try to call like this; But on my logs i see that axios calls, https://myherokuapp-client.com/api/playlists/findplaylist , i couldn't figure it out.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I don't know what was I thinking but when I changed the setup to
it works fine.. |
Beta Was this translation helpful? Give feedback.
I don't know what was I thinking but when I changed the setup to
boot: [ { path: "axios" }, { path: "auth", server: false }, ],it works fine..