Skip to content

feat(cors): add Vary: Origin header for dynamic origin responses#170

Merged
DevanshuTripathi merged 2 commits into
DevanshuTripathi:mainfrom
Utkarsh0uchiha:main
Jun 22, 2026
Merged

feat(cors): add Vary: Origin header for dynamic origin responses#170
DevanshuTripathi merged 2 commits into
DevanshuTripathi:mainfrom
Utkarsh0uchiha:main

Conversation

@Utkarsh0uchiha

Copy link
Copy Markdown
Contributor

Closes #150

Summary

This PR adds the Vary: Origin response header whenever the CORS middleware dynamically sets Access-Control-Allow-Origin.

Added

  • Vary: Origin header for dynamic origin responses

Motivation

The CORS middleware currently varies its response based on the incoming Origin header:

Access-Control-Allow-Origin: <request-origin>

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

@Utkarsh0uchiha is attempting to deploy a commit to the Devanshu Tripathi's projects Team on Vercel.

A member of the Team first needs to authorize it.

@DevanshuTripathi DevanshuTripathi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DevanshuTripathi DevanshuTripathi added level:intermediate Intermediate issue for slightly experienced devs quality:clean Clean quality type:bug type:feature gssoc:approved SSoC26 Social Summer of Code 26 Medium labels Jun 22, 2026
@DevanshuTripathi
DevanshuTripathi merged commit d77c481 into DevanshuTripathi:main Jun 22, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved level:intermediate Intermediate issue for slightly experienced devs Medium quality:clean Clean quality SSoC26 Social Summer of Code 26 type:bug type:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add Vary: Origin header when dynamically setting Access-Control-Allow-Origin in CORS

2 participants