nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.47k stars 280 forks source link

403 Error calling node.js webservice #4267

Closed novelist-jsmith closed 12 months ago

novelist-jsmith commented 12 months ago

Details

I have written a web service using node.js (in Javascript). I have specified a route for my endpoint and have set the application up in IIS. The URL works on the server where the application exists. However, when I try to launch the URL from another server, I get a 403 error.

I know what the error means; I need to know how to give access to the URL from a different resource/server. I'm connecting via a VPN. Thanks

Node.js version

Not applicable.

Example code

No response

Operating system

Windows 11

Scope

Runtime

Module and version

Not applicable.

Pyrolistical commented 12 months ago

This does not sounds like a nodejs issue.

Also what would be more helpful is the output of a successful and failed call using an http client like httpie

novelist-jsmith commented 12 months ago

Yes. I agree. The HTTP request returns a JWT token in the response.

I can run the server.js in node.js and see the results. I can also launch the URL from the server. This isn't a public server. It is my work domain.

novelist-jsmith commented 12 months ago

.NET application uses a web.config file. I was wondering if there is a similar thing for node.js files.