I have a golang project that needs a fix - it doesn't handle custom headers properly so file uploads do not work from a webpage.
When there are custom headers sent with the request the client makes two requests.
The first is the OPTIONS request in which the client asks for the headers,origin etc.
I think that the problem is with that.
Can you fix this?