Discussion Forum

Main >> General Web Development Discussions>> How to stop automatic redirect from http to https in chrome when launching a site as View In browser in VS2022

All Threads Register Login New Discussion
AuthorPostings
JBTC

How to stop automatic redirect from http to https in chrome when launching a site as View In browser in VS2022

Sunday, July 07 2024 08:24 PM

Every time I launch a view in browser page in a web project in VS 2022 in chrome, it swaps to https and not every time https is supported. Is there a way to stop this behavior

Post a Replyreply

tbrussel
Programmer
Re:How to stop automatic redirect from http to https in chrome when launching a site as View In browser in VS2022

Sunday, July 07 2024 08:27 PM

I found this online somewhere and it worked for me:
Go to chrome://net-internals/#hsts. Enter example.com under Delete domain security policies and press the Delete button.

Now go to chrome://settings/clearBrowserData, tick the box Cached images and files and press click the button Clear data.

Post a Replyreply

AT Integrated Inc. | 913 Ridgebrook Rd Suite 109, Sparks, MD 21152 | T: 410-472-2490
Copyright © 2024 AT Integrated Inc. All rights reserved.