Anvil sends back binary data using a content-disposition header of "inline". I'm not sure why they don't use "attachment".
Instead of treating "inline" content-disposition as binary data I just looked for a response content-type header of "application/pdf". Not sure if this is the best way to handle it. Here's the changes that worked for Anvil:
Anvil sends back binary data using a content-disposition header of "inline". I'm not sure why they don't use "attachment".
Instead of treating "inline" content-disposition as binary data I just looked for a response content-type header of "application/pdf". Not sure if this is the best way to handle it. Here's the changes that worked for Anvil: