I have a problem. When I click the button, an error is reported on the page. "Access to XMLHttpRequest at 'http://localhost:8000/hello' from origi ...
I have a problem. When I click the button, an error is reported on the page. "Access to XMLHttpRequest at 'http://localhost:8000/hello' from origi ...
I learned to use koa2 and koa-json-error to make a simple little thing. I wrote an interface to query the database and throw 404 error when the result ...
I have the following code... When I go to the root (http://localhost:3000) I can see it hit the ctx.redirect(path); but I get a 404. If I comment o ...
With Koa, one of my route has a long process, and I would want to stream the body to start sending the css and the javascript so the browser can start ...
I know that Cross-Site Request Forgery (CSRF) is an attack that forces an user to execute unintentional actions some web application in which they are ...
I use "koa": "2.13.0", in my project and I have this .babelrc file: installed "babel-plugin-module-resolver": "4.0.0", on devDependencies package.j ...
I am trying to accomplish the "graceful start" with pm2, but somehow my process.send is always undefined. I am using esm module and start my applicat ...
First time setting up Heroku's postgres service with the "free tier". I use heroku to host a koa server with pg database. The server communicates over ...
I use a post request to upload a picture and store the image data in my server but lost some image data: let storePic = function(imgData) { const ...
We need to send a multipart/mixed response (with a JSON part followed by one or more binary parts) using Koa. Note this is a response, not a request. ...
Does anybody know what the relationship is between KOA and KoA2 in NPM? Recently I was trying to use the KOA framework, and I was wondering which of ...
In NodeJS can we use an email that does not exist (like no-reply@example.com) to send emails? Can we do that using the latest version of Nodemailer ht ...
Here's a trivial trivial koa server implementation: And a simple test: I will skip the example route for brevity sake as the test passes success ...
I've seen previous posts where the issue was that you need to export the instance to be able to call close() on the server. I have tried that however ...
hellow, could you helpme please? I am trying to create a function to protect a POST and DELETE method. I have the problem that all authenticated use ...
async function selectCards ({ status, teamId, userId, GMTTime, cardId, page, pageSize }) { console.log(page, pageSize) const teamWhe ...
My project uses the Koa framework, and I'm looking for a way to replace Express's res.write to stream large datasets into a csv. Can I use koa-write ...
I am trying to fetch an image from external URL and then send it as a response in koa2. For fetching the image I am using Axios library. I am trying ...
I am writing the middleware for API endpoints in my app that respond to webhooks from other applications, and am relatively new to Koa, so am not comp ...
I was trying to use koa-views as my renderer, but I kept getting the message from TS: My app.js index.js - IndexRouter: ...