TTC
Theo's Typesafe Cultsparksupwardsfly
Please help me save our internal app from cookies set at subdomains in our company!
Our Nodejs Express application is seeing 400 bad request responses and 413 request header too large because of cookies that it does not create. These errors can create really unexpected app behavior for users.
These cookies were created by other applications i.e. otherapp.mycompany.com sometimes that have domains .company.com but sometimes have domains like otherapp.mycompany.com. These cookies are tagging along in my applications header and wreaking havoc.
What is the best practice here?
I don't have the ability to get them to change their same-site settings or set CORS. Theres too many of them.
This is a app with ~4-10k internal users. It runs on two 2 gb mem load balanced nodes. Should I set up a middleware to basically parse each request to manually remove cookies set by sites different from origin save for a few select cookies we actually need?
Is there a more elegant solution?
S
sparksupwardsfly•15d ago
I'm also not sure why cookies are being added from otherapp-company.com
Thank you that's a good idea
We have an express server rn that serves the react app. I was thinking to write a Middleware to strip the cookies. Do you think adding an nginx layer in front of my express server is worth it just for this purpose of cookie stripping?
21KMembers
View on DiscordWant results from more Discord servers?
More PostsFail to try beta version of Typescript because @t3-oss requirementhello guys, noob question, how to bypass peer dependencies requirement? i want to use typescript 5.5Module not found: Can't resolve './utils/createUtilityFunctions.mjs't3 starter app with nextauth auth.ts config problems```tsx
const config = {
providers: [GoogleProvider, FacebookProvider],
adapter: DrizzleAdapter(dwhats the proper way to disable auto zoom focus on inputs and textareas on mobile?whats the proper way to disable auto zoom focus on inputs and textareas on mobile? i know you can seinternal server error when deploying to DigitalOceanWhen entering some specific pages in my site, the server gets an error and shuts down.
Why is this error: NEXT_REDIRECTI'm doing a server call in RSC, but it crash the app and show this kind of error and It shows in theNodejs take less time instead BunWhy they close this issue??
https://github.com/oven-sh/bun/issues/10519Testing in reactHey everyone, I’ve been pondering whether diving into learning how to test React code is worth it. DCreate t3 app with nextauth and new router problemsI have a question regarding the t3-createapp with nextauth.
In what file do I put my <SessionProvidModals failing from tutorialhttps://github.com/mchisolm0/gallery/pull/2
I am having trouble getting the modals/app router worki