You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I apologize in advance if I'm missing something here, but when the frontend headers get copied into to the global headers, this is going to potentially have duplicate headers (Accept vs accept), right?
I noticed some of my requests on the Nuxt server side are being sent back from my Django API as HTML. After turning on debug, I see the headers as:
I apologize in advance if I'm missing something here, but when the frontend headers get copied into to the global headers, this is going to potentially have duplicate headers (
Accept
vsaccept
), right?I noticed some of my requests on the Nuxt server side are being sent back from my Django API as HTML. After turning on debug, I see the headers as:
I'm guessing the lowercase
accept
is the one being forwarded from the browser, but the capitalizedAccept
is the one I actually want.Should there be a better way to merge in the headers from the incoming request? Or maybe just the accept header should be ignored?
The text was updated successfully, but these errors were encountered: