Iraq OverflowIraq OverflowIraq OverflowIraq Overflow

Main

HomeCollectionTagsAsk Question

Community

CommunitySubmit ReviewDiscordDiscord

Made with 🩵 by Muammar.jsx

K

Top Questions

How to find a Toyota Camry car driven by a girl between a lot of cars using python classification algorithmsWelcome to Iraq Overflow! Share, Learn, and Code TogetherHybrid Notification System OR Just Email Notifications?Yo yo yo yo!Issues in google auth

Popular Tags

COMMUNITY
3
WEBSITE
2
WEB
2
WELCOME
2
PYTHON
1
All Questions
Question
Burger menu
Amer

Amer Alazawi

@mrcodeiq

The Double-Dip Header Problem

Asked 6 months ago

1 Votes
2 Answers
5 Views
EXPRESS.JS
WEB

How do you fix the error Cannot set headers after they are sent to the client in Express.js?

Good luck bro

2 Answers

Sort by:
Ali

Ali

• Answered 6 months ago

Could you share the code of setting headers plz

Muammar

Muammar

• Answered 6 months ago

Check if the Middleware ends with next(); OR maybe make sure you return a single response in your endpoints.

Best wishes <3