Force Chrome to open specific URLs based on the Content-Type header

I tried to find the Chrome extension that does this, but could not find it. Basically, I want to get into a web service that returns the title of the application content type / rdf + xml or application / xml, and Chrome automatically displays the inline content. I have an XML tree extension that displays XML just fine, but Chrome will download files by default if they don't have a specific extension.

My question is: is there a way to get Chrome to open some inline strings based on the Content-Type returned from the server? Extending or direct support in Chrome is great with me. If this does not exist, I will investigate its development.

+6
source share
1 answer

Great question I've been trying to answer for ages. Unlike firefox, chrome, and chromium, use an external query such as xdg mime to decide which helper applications to use, but you usually don’t need to install chrome as a common handler for the / rdf + xml application. Therefore, I was very happy to know that the chrome extension is "application /...+ json | + xml as inline". Available in the online store or at

https://github.com/andreineculau/chrome-inline-media-type

Thanks andreineculau!

+6
source

Source: https://habr.com/ru/post/908536/


All Articles