N
N
nonamer_city2021-12-30 10:25:27
Express.js
nonamer_city, 2021-12-30 10:25:27

Why do WebStorm and VScode send requests differently?

Hello.
I had a problem when starting the project and trying to log in.
When launching a project in webstorm, a request is sent during authorization and in the response headers content type = application/json.
While if you run the project in vscode. The request is sent with content type = text/html
I don't understand why this happens and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-12-30
@firedragon

No code no answer. Fortune-telling on the coffee grounds, I can answer that you did not explicitly set the content type in your code, so the IDE is trying to guess.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question