Posts by Marcos Alberto Cosmoski Filho • 72 points
6 posts
-
0
votes2
answers525
viewsA: How to fix CORS error in Node.JS? (Web Crawler)
The CORS error will always occur when you request a domain that is different from what is being required. This problem is caused by the BACKEND of the sites you are sending a request, does not…
-
-1
votes2
answers215
viewsA: Fs.writeFile() is overwriting a file
Talk, man, talk, talk, talk ? Next, you really need to read this json file with the lib Fs ? You can only import the file with (require) This way you will have json already formatted on date and do…
-
-1
votes4
answers29846
viewsA: Request with Axios and React blocked by CORS policy
I had the same problem, in the end just use the lib https://www.npmjs.com/package/cors. Very simple to implement and will solve your problem, care only in the production environment not to leave…
-
1
votes1
answer597
viewsA: idHTTP Post Response html hacked
I believe the problem is here. fHTTP.Params.ContentLength := Length(slParam.Text); The length of your slParam should be very small, do a test, put 10,000 in Contentlength, that’s probably it. The…
-
2
votes3
answers1062
viewsA: PHP mysql User Registration Form
The direct connection in mysqli I do so... $mysqli = new mysqli("localhost", "usuario", "senha", "bancodedados"); if ($mysqli->connect_errno) { echo "Falha ao conectar com o mysql: (" .…
-
2
votes2
answers646
viewsA: Encoding problem Servlet, json and jquery.ajax
Have you tried using the content-type "text/html" or "application/json" ? As encoding uses UTF-8 or ISO same... Recalling that the content-type of your file which is . html or . php etc, which…