node,express,koa,koa2 cross-domain problem

XMLHttpRequest cannot load http://localhost:3000/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The above is an exception that I encountered when learning nodejs. There is code and solution below. 1. Noejs Native Solution 1. js file codevar http=require('http'); ...

Added by jd023 on Tue, 25 Jun 2019 21:14:12 +0300

python crawler - write the simplest web crawler

Knowledge is like rags, remember to "sew a seam" before you can show up magnificently. Recently, there has been a strong interest in python crawlers. Here we share our learning path and welcome your suggestions. We communicate with each other and make progress together. 1. Development tools The tool I use is sublime text3, which is s ...

Added by twostars on Thu, 06 Jun 2019 22:50:41 +0300

Touch your hands to play with the sublime text 3 installation configuration

1, introduction Sublime Text is a popular code editor software. It is also an advanced text editor for HTML and prose. It can run on Linux, Windows and Mac OS X. It is also a text editor software that many programmers like to use. This paper introduces the installation, cracking, common plug-ins and the use of shortcut keys of sublime text 3. N ...

Added by dropfaith on Thu, 16 May 2019 00:38:21 +0300