The links returned by getTemporaryLink unfortunately are not meant for displaying the file in the browser, per the documentation:
this URL should not be used to display content directly in the browser
The Dropbox API doesn't offer a good way to do that, but I'll pass this along as a feature request. I can't promise if/when something like that would be implemented though.