Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
28 views

How to redirect to a specified route in Nuxt server api?

I am currently doing a project using Nuxt and I am using the Nuxt server/api folder for all of my external API. What I'm trying to do is that, I want to redirect back to the / page if there are any ...
Lovi's user avatar
  • 47
0 votes
1 answer
92 views

In Nuxt 3, how to navigate to a login page if any REST endpoint returns 401?

I am using Nuxt 3 with server-side rendering. For REST requests, I use Axios. When an user logs in, a refresh token cookie is saved in the browser. Then for all requests to any of the REST endpoints, ...
Bjørn Stenfeldt's user avatar
0 votes
1 answer
63 views

Configuration Vitest in Nuxt 3

I have a large project made with Nuxt 3, Vue, Pinia, Axios, and TypeScript. I need help with configuring Vitest to work in my project. I've had many problems. For example, I wrote a test and it didn't ...
Julio S's user avatar
  • 11
0 votes
1 answer
34 views

Trying to access API but keep getting CORS errors. Client says the API is public. Who is right?

I am amending a website for a client and they are using a new API for their news. The news API comes from a separate domain so when I try to access I get CORS policy errors. I have said that I think ...
callum21's user avatar
0 votes
0 answers
41 views

serverMiddleware and CORS problem on Nuxt2

When requesting weather API, It shows CORS problem and blocks the API request, in order to avoid that I tried using serverMiddleware, but got error 500 In the beginning everthing was working fine. ...
Web Developer's user avatar
0 votes
0 answers
68 views

How integrate @pinia-orm/axios to Nuxt 3 project so that i can use it with pini-orm? Official documention dosen't Nuxt example

The Official documention dosen't have Nuxt integration documentations or examples. I tried creating a NUxt plugin with below code after installing all the plugins. import { createORM } from 'pinia-orm'...
Georgy Varghese Kurian's user avatar
0 votes
1 answer
48 views

Is there a way to cache JSON data with axios in nuxtjs?

Hello I have simple get request to get data from json. Im using it on several places in my app. Data are not changed often, so is there a simple way how to cache this json only for this request? this.$...
Ales Studeny's user avatar
0 votes
1 answer
260 views

Axios vulnerability detected when installing @nuxtjs/auth-next

I have a nuxt project and I was trying to install nuxt auth but every time I install this package, it appears this Axios Cross-Site Request Forgery Vulnerability. This is my package.json file: { &...
Ginja9975's user avatar
0 votes
0 answers
57 views

Unable to access session data in Express using express-session

I have implemented user authentication in my Node.js application using express-session and connect-session-sequelize to manage sessions and store session data in my MySQL database. Upon successful ...
Abod Craft's user avatar
0 votes
0 answers
36 views

How to set up Laravel .env file to work with axios and Laravel Sanctum?

I have a webapp that works with Nuxt as a frontend and Laravel as a backend and Axios as a bridge between the frontend and the backend. In local it works fine but when I go on production mode it doesn'...
Andrea Uberti's user avatar
0 votes
0 answers
63 views

NuxtJS asyncData ui not updating by the responses

I am new to NuxtJS.I am working on a sample project. I have a route in my project called pages-->post-->_id.vue . I am trying to run a sample code just to test fetching with API with asyncData....
Jason's user avatar
  • 315
1 vote
1 answer
244 views

Nuxt Vue3 loading animation when first open website till everything is fetched

I'm building a website and I'm fetching some data in some scroll components but I want a loading screen when someone opens the website till everything is done so they won't load one by one (the page ...
izy's user avatar
  • 11
0 votes
0 answers
104 views

How to request API in Capacitor App created by Nuxt.js

I created Capacitor App by existing Nuxt.js project and use dist folder which is generated by executing nuxt generate. When I run App, API request respond html file below var ExceptionCode; (function (...
tomoka's user avatar
  • 1
-1 votes
1 answer
72 views

Api Sheets Problem Nuxt 2 when i try CopyTo

Problem Hi guys. when I try to send this request I don't know why it doesn't work, I have Oauth2.0 I happen to use Nuxt2 and Nuxt/auth to make a static page. That's why axios sends this request but ...
jared w's user avatar
0 votes
0 answers
145 views

Nuxtjs axios issue in SSR mode

In my Nuxtjs application, I am facing issue "Cannot set headers after they are sent to the client" when API request is made using axios. I am using axios from nuxt: @nuxtjs/axios. The issue ...
Kashyap Kansara's user avatar

15 30 50 per page
1
2 3 4 5
39