Glimpse blocking browser link in Visual Studio 2013
When I turn Glimpse on the browser link in Visual Studio 2013 is no longer connected with that browser. The other browsers are fine until I turn it on in them. Turning Glimpse off restores the browser link. I tried in FireFox 23, Chrome 29 and IE 11.
Plugins: Glimpse (1.6.0) Glimpse.Ado (1.5.0) Glimpse.AspNet (1.4.0) Glimpse.Mvc4 (1.3.3)
MVC 4 project running .NET 4.5 in IIS Express in Visual Studio 2013 12.0.20623.01
Thanks @TommyRush.
Is there any JavaScript errors happening in affected browser? Is the BrowserLink JavaScript tags being injected into the page?
Glimpse doesn't do anything particularly special that should affect the SignalR connection back to VS, so this is a bit ~~weird~~ surprising.
Firefox and IE aren't but Chrome is showing 2 errors.
OPTIONS http://localhost:49937/096061ca3d1242ceaec6d42680786686/negotiate?clientProtocol=1.3&_=1377805676213 Request header field Glimpse-Parent-RequestID is not allowed by Access-Control-Allow-Headers. Glimpse.axd?n=glimpse_client&hash=4777647d:2417
XMLHttpRequest.send Glimpse.axd?n=glimpse_client&hash=4777647d:2417
send artery:11
p.extend.ajax artery:11
i.fn.i.start artery:20
(anonymous function) artery:20
p.event.dispatch artery:11
g.handle.h
XMLHttpRequest cannot load http://localhost:49937/096061ca3d1242ceaec6d42680786686/negotiate?clientProtocol=1.3&_=1377805676213. Request header field Glimpse-Parent-RequestID is not allowed by Access-Control-Allow-Headers.
The tags look okay, Glimpse off:
</body>
<script type="text/javascript">window.__vwd_mapping_data={"map":[{"sourceFile":"~/Views/_ViewStart.cshtml"},{"sourceFile":"~/Views/Home/About.cshtml"},{"sourceFile":"~/Views/Shared/_Layout.cshtml"},{"sourceFile":"~/Views/Shared/_LoginPartial.cshtml"}]};</script>
<!-- Visual Studio Browser Link -->
<script type="text/javascript" src="/__vwd/js/artery"></script>
<!-- End Browser Link -->
</html>
Glimpse on:
<script type='text/javascript' src='/Glimpse.axd?n=glimpse_client&hash=4777647d'></script><script type='text/javascript' src='/Glimpse.axd?n=glimpse_metadata&hash=4777647d&callback=glimpse.data.initMetadata'></script><script type='text/javascript' src='/Glimpse.axd?n=glimpse_request&requestId=c33df78e-4606-46c0-ab63-80298fed3f25&hash=4777647d&callback=glimpse.data.initData'></script></body>
<script type="text/javascript">window.__vwd_mapping_data={"map":[{"sourceFile":"~/Views/_ViewStart.cshtml"},{"sourceFile":"~/Views/Home/About.cshtml"},{"sourceFile":"~/Views/Shared/_Layout.cshtml"},{"sourceFile":"~/Views/Shared/_LoginPartial.cshtml"}]};</script>
<!-- Visual Studio Browser Link -->
<script type="text/javascript" src="/__vwd/js/artery"></script>
<!-- End Browser Link -->
</html>
FYI I tried the above on a new MVC 4 project to make sure it wasn't my projects being odd.
I think I see what is happening here @TommyRush, there is a bit of an issue with the preflight CORS request.
We'll work through this, but please be a bit patient. I have to first install VS 2013 to replicate the issue, and then I'm going to have to collaborate with @madskristensen (the genius behind browser link) to figure out the best way forward.
@TommyRush, I've heard back from @madskristensen on Twitter and he has confirmed that this problem has been relieved since the preview version of VS 2013.
@nikmd23 We've run Glimpse through the latest build of Browser Link and there is no issue. We changed the way we do CORS since Preview
— Mads Kristensen (@mkristensen) September 9, 2013
Please update to the new version of VS and this problem should go away for you.
@TommyRush, I've heard back from @madskristensen on Twitter and he has confirmed that this problem has been relieved since the preview version of VS 2013.
@nikmd23 We've run Glimpse through the latest build of Browser Link and there is no issue. We changed the way we do CORS since Preview
— Mads Kristensen (@mkristensen) September 9, 2013
Please update to the new version of VS and this problem should go away for you.
@TommyRush, I've heard back from @madskristensen on Twitter and he has confirmed that this problem has been relieved since the preview version of VS 2013.
@nikmd23 We've run Glimpse through the latest build of Browser Link and there is no issue. We changed the way we do CORS since Preview
— Mads Kristensen (@mkristensen) September 9, 2013
Please update to the new version of VS and this problem should go away for you.