Skip to content

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

@leehomeok

Description

@leehomeok

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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions