Jump to content

can modify response headers?


Go to solution Solved by Luke,

Recommended Posts

justinrh
Posted (edited)

I was looking at my Caddy reverse proxy logs and see Emby is handing out a large amount of response headers.  If I'm misunderstand the logging, please tell me.

My main question is, are all of these methods necessary for media playback and picture upload? :

"Access-Control-Allow-Methods": [
            "GET, POST, PUT, DELETE, PATCH, OPTIONS"
        ]

Can I remove some of those methods?

What I really don't like about this is that all of this stuff is handed out even for 404's, like when the public is scanning and fishing for services! 

 

the whole thing:

"resp_headers": {
        "Via": [
            "1.1 Caddy"
        ],
        "Strict-Transport-Security": [
            "max-age=31536000"
        ],
        "Content-Type": [
            "text/plain"
        ],
        "Access-Control-Allow-Methods": [
            "GET, POST, PUT, DELETE, PATCH, OPTIONS"
        ],
        "Cross-Origin-Resource-Policy": [
            "cross-origin"
        ],
        "Private-Network-Access-Name": [
            "server name that emby doesn't like"
        ],
        "Server": [
            "UPnP/1.0 DLNADOC/1.50"
        ],
        "Content-Length": [
            "39"
        ],
        "Access-Control-Allow-Origin": [
            "*"
        ],
        "Date": [
            "Mon, 31 Aug 2026 14:01:56 GMT"
        ],
        "Access-Control-Allow-Headers": [
            "Accept, Accept-Language, Authorization, Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Length, Content-MD5, Content-Range, Content-Type, Date, Host, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, Origin, OriginToken, Pragma, Range, Slug, Transfer-Encoding, Want-Digest, X-MediaBrowser-Token, X-Emby-Token, X-Emby-Client, X-Emby-Client-Version, X-Emby-Device-Id, X-Emby-Device-Name, X-Emby-Authorization"
        ],
        "Access-Control-Allow-Private-Network": [
            "true"
        ],
        "Private-Network-Access-Id": [
            "8yuizxfe9a604c159a4dbd55fad7bjku"
        ]
    }

 

Edited by justinrh
  • Solution
Posted

Hi, we don't actually just put or patch, but the rest are needed.

  • Thanks 1
justinrh
Posted

Can you or I not respond with all that stuff for 404's?

Posted

Possibly but I'm not sure. That will require some evaluation.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...