mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-24 09:14:47 +01:00
* master pull * Reverting .npmrc file * Removed logging userContext * Prettier run * Added support for opening CosmosDB Account without clicking database tab * Reverting change in settings.json * Prettier run * Added check if the link closed * Added check if the link didn't closed * Check if VS Code was opened, if not popup with download button link * Prettier run * Redirect to Download VS Code if not opened * Added error message to VS Code timeout and redirect * Fixing baseUrl from testing * Increased timeout for when user is asked to open VS Code * switched to iframe for redirects * Fixed VS Code url * Removed insider url * Added log messages * Added link to vCore data explorer dashboard * Increased timeout to 2.5 secs to see if that helps with VS Code open popup * Changed to dialog box * Changed param name * Increase startTime for extra popup * Changed to dialog box only when no VS Code detected * Fixed vscode url * Changed title back to Open CosmosDB in VS Code * Added text on required extensions * Removed text on required extensions as it will prompt by default * Fixed wording and Primary Button timeout * Spelled out VS Code * Removed console log of timeout * Updated snapshots and lowered timeout * Remove VS Code button from Gremlin * Prettier run on CommandBarComponentButtonFactory * Changed from referencing location to a link * Prettier run * Reverting back to popup for opening * Updated unit test snapshots * Added vscode: to Content Security Policy * Reverting back to popup only if opening times out
96 lines
3.3 KiB
XML
96 lines
3.3 KiB
XML
<?xml version="1.0"?>
|
|
<configuration>
|
|
<system.webServer>
|
|
<staticContent>
|
|
<mimeMap fileExtension="json" mimeType="application/json" />
|
|
<mimeMap fileExtension="woff" mimeType="application/font-woff" />
|
|
</staticContent>
|
|
<rewrite>
|
|
<rules>
|
|
<rule name="AAD-Redirect" stopProcessing="true">
|
|
<match url="^aad" ignoreCase="true"/>
|
|
<conditions>
|
|
<add input="{HTTP_HOST}" pattern="^cosmos.azure.com" />
|
|
</conditions>
|
|
<action type="Redirect" url="/?feature.enableAadDataPlane=true&feature.disableConnectionStringLogin=true" redirectType="Permanent" />
|
|
</rule>
|
|
</rules>
|
|
<outboundRules>
|
|
<rule name="Strict-Transport-Security" enabled="true">
|
|
<match serverVariable="RESPONSE_Strict_Transport_Security" pattern=".*" />
|
|
<conditions>
|
|
<add input="{HTTPS}" pattern="on" ignoreCase="true" />
|
|
</conditions>
|
|
<action type="Rewrite" value="max-age=31536000; includeSubdomains; preload" />
|
|
</rule>
|
|
</outboundRules>
|
|
</rewrite>
|
|
<httpProtocol>
|
|
<customHeaders>
|
|
<clear />
|
|
<add name="X-Xss-Protection" value="1; mode=block" />
|
|
<add name="X-Content-Type-Options" value="nosniff" />
|
|
<add name="Content-Security-Policy" value="frame-src 'vscode:' frame-ancestors 'self' portal.azure.com *.portal.azure.com portal.azure.us portal.azure.cn portal.microsoftazure.de df.onecloud.azure-test.net *.fabric.microsoft.com *.powerbi.com *.analysis-df.windows.net dataexplorer-preview.azurewebsites.net" />
|
|
</customHeaders>
|
|
<redirectHeaders>
|
|
<clear />
|
|
</redirectHeaders>
|
|
</httpProtocol>
|
|
</system.webServer>
|
|
<location path="explorer.html">
|
|
<system.webServer>
|
|
<staticContent>
|
|
<clientCache cacheControlMode="DisableCache" />
|
|
</staticContent>
|
|
</system.webServer>
|
|
</location>
|
|
<location path="hostedExplorer.html">
|
|
<system.webServer>
|
|
<staticContent>
|
|
<clientCache cacheControlMode="DisableCache" />
|
|
</staticContent>
|
|
</system.webServer>
|
|
</location>
|
|
<location path="cellOutputViewer.html">
|
|
<system.webServer>
|
|
<staticContent>
|
|
<clientCache cacheControlMode="DisableCache" />
|
|
</staticContent>
|
|
</system.webServer>
|
|
</location>
|
|
<location path="config.json">
|
|
<system.webServer>
|
|
<staticContent>
|
|
<clientCache cacheControlMode="DisableCache" />
|
|
</staticContent>
|
|
</system.webServer>
|
|
</location>
|
|
<location path="mpac/explorer.html">
|
|
<system.webServer>
|
|
<staticContent>
|
|
<clientCache cacheControlMode="DisableCache" />
|
|
</staticContent>
|
|
</system.webServer>
|
|
</location>
|
|
<location path="mpac/hostedExplorer.html">
|
|
<system.webServer>
|
|
<staticContent>
|
|
<clientCache cacheControlMode="DisableCache" />
|
|
</staticContent>
|
|
</system.webServer>
|
|
</location>
|
|
<location path="mpac/cellOutputViewer.html">
|
|
<system.webServer>
|
|
<staticContent>
|
|
<clientCache cacheControlMode="DisableCache" />
|
|
</staticContent>
|
|
</system.webServer>
|
|
</location>
|
|
<location path="mpac/config.json">
|
|
<system.webServer>
|
|
<staticContent>
|
|
<clientCache cacheControlMode="DisableCache" />
|
|
</staticContent>
|
|
</system.webServer>
|
|
</location>
|
|
</configuration> |