Skip to main content

All Questions

Tagged with
3,786 questions with no upvoted or accepted answers
11 votes
0 answers
470 views

Importing AngularJS 1.6 into Angular-Universal Project

We have a hybrid Angular6 and AngularJS 1.6 project which we are currently migrating. In this process, we also want to introduce Server Side Rendering (SSR). The problem is, that the SSR is running ...
helgetan's user avatar
  • 1,407
9 votes
0 answers
1k views

AWS S3 File Uploads Timeout During Browser Uploads w/ Signed URLs

I've been trying to get this to work for 2 days now. I am able to get a signed URL from my Node server with the credentials for my bucket and the file information, but when I try to upload the file ...
shteeven's user avatar
  • 532
9 votes
1 answer
2k views

Pipe multipart form uploads to another server

I am trying to handle a POST request on my Node Express server to deal with multipart form uploads, in my case the user is uploading images. I want to pipe the upload to another server via my Express ...
mindparse's user avatar
  • 6,915
9 votes
4 answers
20k views

How to use npm module in angular?

I am trying to use braintree-web npm module with AngularJS since I get errors when I try and include it in the template with: <script src="https://js.braintreegateway.com/v2/braintree.js"></...
c0de's user avatar
  • 819
8 votes
2 answers
960 views

angular 2 equivalent of react renderToString

I am looking for the angular 2 equivalent of react-dom/server.renderToString import { renderToString } from 'react-dom/server'; // Render the component to a string const html = renderToString( &...
jantimon's user avatar
  • 37.7k
8 votes
2 answers
903 views

howto prevent www-authenticate header when using passport-http Basic + passport-local combination

Hi I want to support both formbased authentication and http basic authentication in my app. Everything works as expected except when I use form based auth via angularjs with wrong credentials. ...
Marco's user avatar
  • 4,999
8 votes
1 answer
745 views

How to register and use mongoose-deep-populate

okay. so I'm trying to do some nested population of my mongoose models. And I found that Mongoose-Deep-Populate was one of the easiest fixes for the nested solution, however, as easy as it might seem, ...
Michael Tot Korsgaard's user avatar
8 votes
2 answers
6k views

CORS error with Facebook callback function

I have the following code: app.js: var passport = require('passport') , FacebookStrategy = require('passport-facebook').Strategy , ... passport.serializeUser(function(user, done) { console.log(...
Geert Van Laethem's user avatar
8 votes
3 answers
2k views

NodeJS: Where to store JWTs on the client side? sessionStorage, localStorage or cookies?

What is the best place to store JSON Web Tokens for authentication on a SPA with NodeJS and (for example) AngularJS? What I got so far: Possible places: HTML5 Web Storage (localStorage/...
Ole Spaarmann's user avatar
7 votes
1 answer
3k views

How to store clientId and clientSecret in clientside angularjs application using OAuth2?

I am building an MEAN JS application,I want to protect my application clientId and client secret in clientside angularjs application.Where can I store these details.How to provide security for this? ...
Ravi Babu Karikati's user avatar
6 votes
0 answers
418 views

xmpp message not send to selected friend

I am working in mean stack application and now I required to make chatting module using the XMPP protocol. I am new with XMPP, I have used "node-xmpp-server" and "node-xmpp-client" in node js and "...
laxman's user avatar
  • 1,348
6 votes
1 answer
6k views

Why npm tries to find package.json in the wrong directory?

I'm having a web app with TypeScript, Angular and several dependencies. npm of course is here also. package.json was introduced to the project from the begging by npm init and right now it looks like ...
Vassilis Pits's user avatar
6 votes
1 answer
11k views

Error during WebSocket handshake: Unexpected response code: 500

i am using a websocket on my site but at random it sends me the following error message: WebSocket connection to 'ws://client.mydomain.com/socket.io/?EIO=3&transport=websocket&sid=...
Marc Rasmussen's user avatar
6 votes
1 answer
1k views

MEANJS: Best way to send base64 image to server

Situation I'm using MEAN.JS framework (MongoDB, ExpressJS, AngularJS and NodeJS). Using AngularJS in frontEnd; I have a JSON with a base64 encoded image in a field. What I want? I want to send ...
Aral Roca's user avatar
  • 5,720
6 votes
0 answers
1k views

Sign in Twitter OAuth without Sessions aka token_secret (AngularJS Fail)

This is an express route from angularjs satellizer example, implementing 3 legged OAuth with Twitter: /* |-------------------------------------------------------------------------- | Login with ...
user3995789's user avatar
  • 3,450

15 30 50 per page
1
2 3 4 5
253