.NET changing crossorigin/> to crossorigin=""/>

49 Views Asked by At

I'm trying to preconnect to resources on my .aspx page.

My code:

<link rel="preconnect" href="https://vars.hotjar.com" crossorigin/>

Which .NET turns into

<link rel="preconnect" href="https://vars.hotjar.com" crossorigin=""/>

I've upgraded to VS2019, I'm pretty sure on past projects I've never had this problem so it may be a VS issue. Does anyone know how to bypass this change?

Thanks

1

There are 1 best solutions below

4
On

Why do you want to bypass it? VS2019 is just correcting your typo to correct syntax

From term of functionality there is no difference.