You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really nice if the browser could support non-json resources, for example images, pdf or plain html. Perhaps it is possible to detect the media type of a resource and display it directly in a iframe when it is not json.
The text was updated successfully, but these errors were encountered:
A work-around would be to add the following lines (only for HTML with JSON, like Error{"_links":{"self":{"href":"api"}}} will popup a window with Error and render remaining JSON):
The above code will popup a window whenever you have raw HTML before the actual JSON output and pass rest of the (JSON) output. You can modify it to process the output according to the mime or other parameters and open them in new (popup) window.
It would be really nice if the browser could support non-json resources, for example images, pdf or plain html. Perhaps it is possible to detect the media type of a resource and display it directly in a iframe when it is not json.
The text was updated successfully, but these errors were encountered: