Allow custom headers for submit (and fetcher.submit)
              
              #10002
            
            Replies: 9 comments 5 replies
-
| I guess the current way to do this would be to use hidden input values? (or query params on get requests) | 
Beta Was this translation helpful? Give feedback.
-
| I wanted to submit a DELETE request with a custom header. It's unfortunate it isn't allowed. | 
Beta Was this translation helpful? Give feedback.
-
| Just stumbled across this today, it makes implementing proper CSRF a pain. Even the OWASP cheatsheet says if possible use a header rather than a form field as it's more secure and only allowed for same-origin requests. @kentcdodds did you find any work around on this or is it still off limits? | 
Beta Was this translation helpful? Give feedback.
-
| Also ran into this, but in a bit of a weird use case. We have an action we're using internally, but also accessible to outside requests via API key. We can't add our auth headers, so we had to dump  | 
Beta Was this translation helpful? Give feedback.
-
| Same need for me, to add a Bearer header. | 
Beta Was this translation helpful? Give feedback.
-
| I also need this feature. Please Add it. Thank you | 
Beta Was this translation helpful? Give feedback.
-
| I also need this feature. :-) | 
Beta Was this translation helpful? Give feedback.
-
| Devs please let us know if you plan to implement this feature. Thank you. | 
Beta Was this translation helpful? Give feedback.
-
| Would love to see this too, up | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
That's it. Just let me pass my own headers for stuff that wouldn't work without JavaScript anyway. My specific use case is to force a specific instance of my app to handle a request, but I'm sure there are other use cases too.
Beta Was this translation helpful? Give feedback.
All reactions