Record: nailing enterprise internal application dd.httpRequest report errors error:12
Error: the emulator on the PC can be accessed normally, but after it is released online, it will be prompted that error:12 Network error
the company requires the development of nailing add in program, I choose the enterprise internal program, the background is Java, the front end is e application
because I have intranet penetration, so I use it locally!
Both the background and the front end download the demo directly from the official website,
in the index.js The path of a URL in is domain + ‘/ Login’
let domain = " http://sellzys.natapp4.cc";
let url = domain + '/login';
But in dd.httpRequest In the call of
dd.httpRequest({
url: url,
method: 'POST',
data:{
authCode:res.authCode
},
Cannot write URL
need to write directly
dd.httpRequest({
url: 'http://sellzys.natapp4.cc/login',
method: 'POST',
data:{
authCode:res.authCode
},
I don’t know the specific reason. I just changed the URL to a path and passed it