Upstream content not being preserved

Hello,

I’m front-ending several endpoints with kong as an api gateway.

One of my upstream URLs is a fastAPI server, which works fine. However, for giggles, I go to the auto-generated “docs” page and I get an error for it being unable to grab the /opanapi.json file.

I’ve noticed this with other endpoints as well, images, css files, essentially all static content does not get delivered to the client using the api gateway URLs.

Is this always expected behavior or is there some type of config I’m missing?