the front-end page requests the api interface across domains, resulting in the loss of cookies how to solve it? ...
the front-end url is in the format of http: localhost:3333 index.html-sharp detail accesses the backend and reports a cross-domain error No Access-Control-Allow-Origin header is present on the requested resource.. Origin http: localhost:3333 ...
when using the curl that comes with egg, it will report an error intermittently. Why? at errnoException (dns.js:50:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26) code: "ENOTFOUND" errno: "ENOTFOUND" syscall: "...
what technical framework is used for vue multi-page back-end rendering? The project is an online mall that currently uses egg.js + easywebpack, but has problems. cannot load the complete framework compared with Nuxt.js (see the source code of the web...
how to change the host that eggjs starts by default as shown in the figure, the default is 127.0.0.1. I want to change it to my local ip address. How can I change it ? ...
a security problem has been de tected for url "https: open.weixin.qq.com connect oauth2 authorize?appid=wxaf4b4a767b7ecdfa&redirect_uri=http%3a%2f%2ft1.x.cn%2foauth&response_type=code&scope=snsapi_userinfo&state=123-sharpwechat_redirect ", redirectio...
separate the front and rear ends and separate the .html .css .js. In the background, node and egg framework are put on the cdn to speed up access, but the disadvantage is how to obtain the parameters? if you use a template to render ctx.render in view ...
problem description upload excel files at the front end, and receive and process the files at the back end related codes Please paste the code text below (do not replace the code with pictures) async importMember() { const stream = ...
this.ctx.redirect ( "url ", xxx) how to fill in here, redirect cross-domain problem ...
problem description Failed to load https: open.weixin.qq.com connect oauth2 authorize?appid=wxaf4b4a767b7ecdf9&redirect_uri=myurl&response_type=code&scope=snsapi_userinfo&state=STATE-sharpwechat_redirect: Redirect from https: open.w...
an online lottery item (eggjs+mysql) that occasionally has duplicate data in the database. I looked at the request log and found that two of the same requests were printed twice, resulting in two requests for interface functions. I don t know if it is c...
egg Project template engine chooses handlebars, official website to provide egg-view-handlebars this library, but some problems are found in the process of using it: 1. This library defaults to app view partials as the local page folder, but I can...
projects separated from the front and back ends can be compiled and packaged with static resources with webpack, but how to package the static resources at the front end with egg, such as scss,js compression, etc. Is there any way to integrate directly i...
for example, I use the provided by the egg-mysql framework. const results = await this.app.mysql.select( posts , { post where: { status: draft , author: [ author1 , author2 ] }, WHERE columns: [ author , title ], orde...
eggjs framework. When useSession is enabled in csrf configuration, ajax requests to report a 403 error. How to solve this problem? if useSession is not enabled, simply add x-csrf-token to the ajax request header, and the csrftoken value is taken from...
I use eggjs to try to connect to kafka, so that topic corresponds to the file name under app kafka, and finally executes all the methods under the file name. If I want to deal with the business in a separate directory under the app directory, at first I...
I recently played with the strapi framework and realized that the best thing about this structure is, one, any field model, and two, extensible plug-ins. Among them, the method of any field model is a little complicated. I haven t figured it out for de...
when the user logs in with eggjs, and after the user has successfully logged in, put user in session async login() { const ctx = this.ctx; const { username, password } = ctx.request.body; const user = await this.service.home.login(username,...
when I use eggjs server-side rendering (I just want to get the rendered HTML), it is always reported that parsing jsx code or import syntax parsing failed. Here is my code: use strict ; require( babel-polyfill ); require( babel-register )(...
according to the official document of eggjs: in the default configuration of CSRF, token is set in Cookie. When an AJAX request is made, token, can be taken from Cookie and sent to the server in query, body or header. In jQuery: var csrftoken = Coo...
mac Firewall is off by default, the corresponding port of telnet is not accessible, and the corresponding port service has been started. the result of scanning the port on this machine is as follows. You can scan the port with 127.0.0.1 and use the priv...
demand: send birthday cards on employees birthdays birthday cards (with different subjects each month) are made and uploaded in the system. Birthday cards are composed of problems and pictures, the text floats on the pictures, and the text field ...
I am in init.js Window.prototype.interface = function () { return https: xxx.xxxxxxx.com } Window.prototype.getParam=function (paramName) { var paramValue = "", isFound = !1; if (this.location.search.indexOf("?") == 0 &am...
(SELECT * FROM `dozhan_reply` t1 WHERE `reply_parent` IN ( SELECT `reply_id` FROM ( SELECT `reply_id` FROM `dozhan_reply` WHERE `reply_article` = 69 AND `reply_type` = 0 LIMIT 0, 5 ) t )) UNION (SEL...
set actions, in the newly created new Vuex.Store and set the async await, code as follows: async actthree:(context)=>{ context.commit( alertthree ,await alertthree()) }, async actfour:(context)=>{ ...