Skip to content

fix/api-server-cors-vary-origin (base: upstream/main)#3211

Closed
aydnOktay wants to merge 3 commits intoNousResearch:mainfrom
aydnOktay:fix/api-server-cors-vary-origin
Closed

fix/api-server-cors-vary-origin (base: upstream/main)#3211
aydnOktay wants to merge 3 commits intoNousResearch:mainfrom
aydnOktay:fix/api-server-cors-vary-origin

Conversation

@aydnOktay
Copy link
Copy Markdown
Contributor

This PR adds a small but effective security hardening to the OpenAI-compatible API server by setting the X-Content-Type-Options: nosniff header on all responses via middleware, preventing MIME sniffing in browsers and improving overall safety for web-based clients; it also includes a regression test to ensure the header is consistently present.

@aydnOktay
Copy link
Copy Markdown
Contributor Author

heyy sir check pls my prs @teknium1

@teknium1
Copy link
Copy Markdown
Contributor

Thanks for this contribution, @aydnOktay! The security header hardening from this PR was already salvaged and merged into main.


This is an automated hermes-sweeper review.

Closing this PR as the work is fully implemented on main.

@teknium1 teknium1 closed this Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants