All Questions
1,982
questions
-1
votes
0
answers
14
views
CSP not showing on browser
I'm quite new to coding, and I'm developing an application using Express, Node JS and Angular. Right now, I am focusing on security, so I did some research and found the Content Security Policy, which ...
1
vote
3
answers
71
views
NodeJS Express Host index.html File Then Route To Specific Spa Route with Params
I have an application that uses Angular 13 as the frontend and nodeJS with express for the backend. The backend servers the frontend files. I am working on adding subdomains into my application and ...
1
vote
1
answer
66
views
Can't post image file to Express server with Angular 18.0.6
I am not a native English speaker so my english might be hard to read.
I am currently developing Angular(18.0.6) application and trying to implement CRUD using express and mysql.
What I am trying is ...
0
votes
0
answers
27
views
Invalid csrf token at doubleCsrf
Need help, can't figure out why Set-Cookie is not being passed to the subsequent requests. If I'm able to do so I think the authentication will work.
Error message:
ForbiddenError: invalid csrf token
...
1
vote
1
answer
65
views
Angular 17 Router not working on node server
I'm with a strange situation.
I'm making a simple app that for now needs to go from the landing-page (directory '') to a form component (directory '/form') using Angular 17 and node.js with express.js....
1
vote
0
answers
59
views
CORS error from express calling api from subdomain
I have this error
Access to XMLHttpRequest at 'https://api.mysite.com/api/uploadfile' from origin 'https://sub.mysite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is ...
1
vote
0
answers
24
views
Why are cookies sent in the xhr request inspite of not being set in the Chrome Application tab ---> cookies?
I have 2 angular applications: csrfexample.com:4200 and attacker.csrfexample.com:4201. Both these application connect to a node server: csrfexample.com:3000.
When I login into the csrfexample.com:4200 ...
0
votes
0
answers
47
views
"Http failure response for http://servername/article: 0 Unknown Error" Angular
My code runs fine on localhost but when i upload it on a remote server it gives me two errors:
Access to XMLHttpRequest at 'http:servername:4000/getArticleContent' from origin 'http://servername' has ...
0
votes
0
answers
24
views
Dynamically Create Subdomains in NodeJS Express and Heroku
I have an angular application that currently handles tenants(customers) using our software to have their own online store load up based on query params. So https://my-site.com is the main domain. Let'...
0
votes
0
answers
34
views
where to put extra express route handlers in angular 17 project tree
in [project-root]/server.ts, I wanted to add one extra express route... for now, I added these lines:
import bodyParser from 'body-parser';
import {handleFoo} from "./foo-handler";
and
...
0
votes
0
answers
39
views
Server.ts not able to run because of issue with ES vs CommonJS in Angular project
I have an Angular project where I am using PostgreSQL and Express for my backend. Angular automatically provides a server.ts file. However, I do not understand how to start the server because I get ...
0
votes
0
answers
21
views
Problems with cookie handling
I don't know if anyone has had this problem before, but I can't find a solution.
The problem itself is that apparently my frontend does not handle cookies as I would like, since although my API ...
1
vote
0
answers
38
views
The token is not installed in the headers
The thing is that I'm trying to get a token from a cookie using the ready-made CookieService library and output it to console.log() - and the most interesting thing is that it is displayed in console....
0
votes
1
answer
36
views
Angular Post call with an Array of Objects to Express is not working, not even talking with each other
I'm working with a particular Post call that passes an array that doesn't want to talk to Express Node.js server I created to make MySQL queries. Here's the method code that starts the whole thing:
...
1
vote
1
answer
101
views
How To Deploy an Angular and Node.js app on IIS
I have Angular 17 project with .Net core as backend
I added node.js as backend in angular project
working perfectly on my localhost but on production not working i got "Method Not Allowed"...