openai-node icon indicating copy to clipboard operation
openai-node copied to clipboard

req header user-agent is not a normal value in safari

Open leehomeok opened this issue 6 months ago • 0 comments

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • [x] This is an issue with the Node library

Describe the bug

use safari , in chat/completions API , the header User-Agent is D/JS 4.104.0,

then it spawn a error : Request header field User-Agent is not allowed by Access-CControl-Allow-Headers

To Reproduce

write something , and fetch chat/completions

Code snippets


OS

macOS

Node version

Node v22.16.0

Library version

4.104.0

leehomeok avatar Oct 30 '25 07:10 leehomeok