Auto HTML API setup to exclude js/css components #121
Unanswered
AndreyMisnikov
asked this question in
Q&A
Replies: 1 comment
-
Please provide a network web console screenshot of these additional resources? There should only be references to internal resources as we've removed the polyfil for Safari of import maps in January, there shouldn't be any external references from v8.1. Otherwise you should be able to restore the old HtmlFormat page with: ServiceStack.Templates.HtmlTemplates.HtmlFormatName = "HtmlFormatLegacy.html"; You can also remove other Built In UIs like API Explorer with: Plugins.RemoveAll(x => x is UiFeature); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After updating to ServiceStack 8.x, I've noticed that when I execute an API endpoint via the browser URL with a content-type of text/html, a new page called "Auto HTML API" is generated. However, it attempts to load additional JS/CSS files.
Primarily, I've configured a "Content-Security-Policy" header to specify what can or cannot be loaded, and I'm using a load balancer. The path for loading JS/CSS components is incorrect + security issues. Is there a way to set it up as it worked previously, without loading JS or CSS components? I've only found the option to disable HTML via HostConfig.EnableFeatures, but that's not the solution I'm seeking.
Beta Was this translation helpful? Give feedback.
All reactions