Nuxt3 + Laravel sanctum
How can I get data from api when backend is secured by laravel sanctum? when I use useFetch I do not get any data. const {data: cat} = await useFetch('/api/categories') Laravel docs told to use axios but in nuxt3 axios…
How can I get data from api when backend is secured by laravel sanctum? when I use useFetch I do not get any data. const {data: cat} = await useFetch('/api/categories') Laravel docs told to use axios but in nuxt3 axios…
useState() in a Nuxt3 has a power of sending data to client after fetching it on server side (except rendered HTML file, it sends JSON file with data saved using useState()). Like I mentioned in the title, I want to…
When I try to build docker image get this error after run yarn build. #0 0.496 yarn run v1.22.19 #0 0.531 $ nuxt build #0 1.538 ℹ️ Using Tailwind CSS from ~/assets/css/tailwind.css #0 1.543 #0 1.543 FATAL Cannot destructure property…
So I am making a web app with nuxt 3 and laravel, and I cant seem to get the SPA authentication to work. So I am for now generating a usertoken and saving it in the cookies, so my user…
I'm new to Nuxt3 and I've been working on the login api inside a function. The api call works when it's outside the function, but when I put it inside a function, it returns a 419 error response. this is…
<template> <div> <select ref='select'> <slot></slot> </select> </div> </template> <script> import Vue from "vue" export default { name: "VueSelect", props: ['options', 'value'], mounted: function () { var vm = this; $(this.$refs.select) .select2({ data: this.options, tags: true, theme: "bootstrap", createTag: function (params)…
At first, I created a vuestorefront nuxtjs project using the command npx @vue-storefront/cli generate store with Odoo integration After that, I created a .env file BASE_URL=http://localhost:8069/ SITE_URL=http://localhost:3000/ # PUBLIC_PATH=https://xyz.cloudfront.cdn.com # For CI and other deployment scripts NODE_ENV=dev NODE_LOCALE=en-EN PORT=3000 HOST=0.0.0.0…
I'm trying to migrate a project from Vue2 to Nuxt3, mostly because of SEO problems, and when I try to nom run dev it, I get these errors : These dependencies were not found: child_process in ../node_modules/xmlhttprequest/lib/XMLHttpRequest.js fs in ../node_modules/xmlhttprequest/lib/XMLHttpRequest.js…
The truth is, since nuxt works poorly in some native access, such as accessing the file manager or sending notifications to iPhone users, I am not sure if appstore supports nuxt projects or not. That's why before I start the…
I use Axios to get cookies from http://localhost/sanctum/csrf-cookie My app doing requests from localhost:3000 which is configured by Nuxt. My backend configured by Laravel sanctum at localhost:80 After the GET request, I have the following cookies set in my headers:…