Posts by Fredson Rodrigues • 80 points
5 posts
-
0
votes2
answers1371
viewsA: How to receive express headers sent by Xios in React.js
You must enable in CORS the header x-access-token: const allowCrossDomain = (req, res, next) => { res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Methods',…
-
-1
votes2
answers678
viewsA: Return data from an HTTP request at Angular
Well, take for example that you are making a request waiting for a type object Car: getModel(id: number): Observable<Car> { return this.http.get<Car>(`${this.getModelByIdUrl + id}`); }…
-
1
votes2
answers411
viewsA: Use Angular 2 without Nodejs after build
Well, that’s what the Angular-cli. It has a function called ǹg build, where he himself manages the webpack to generate the ideal minified files for production. In doing so, you can run the build of…
-
3
votes1
answer861
viewsA: Nodejs integration with DLL
There is a lib called Edge. In its documentation it guides how to perform a DLL function. var hello = require('edge').func({ assemblyFile: 'My.Edge.Samples.dll', typeName: 'Samples.FooBar.MyType',…
-
2
votes1
answer311
viewsA: Mongoose Nodejs: error when connecting with Mongodb
On your app, change the door. The EADDRINUSE error means that your port 8081 is already in use by some other application.