Forum Discussion

anuGarg's avatar
anuGarg
New Member
3 years ago

Swagger UI - DevTools failed to load SourceMap

Hi Team,
I am using Swagger for my .net Core Web API and when opening "Dev Tools" then it's giving me below errors:
1. DevTools failed to load SourceMap: Could not load content for https://MyAPI/swagger-ui-standalone-preset.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
2. DevTools failed to load SourceMap: Could not load content for https://MyAPI/swagger-ui-bundle.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
3. DevTools failed to load SourceMap: Could not load content for https://MyAPI/swagger-ui.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
 
Can anyone suggest what is causing these errors? I know one solution i.e. UNCHECK "Enable Javascript Source Map" & "Enable CSS source map" ; but we want to get rid of these errors by code so that no one should see these errors/warnings.

Any help would be much appreciated.
Thanks in advance.
Regards.
No RepliesBe the first to reply