Cant open live server while on Codespaces #77579
Replies: 2 comments 3 replies
-
To resolve the first issue, ensure your Live Server is configured for HTTP instead of HTTPS, or verify and fix any SSL certificate problems if HTTPS is required. For the second issue, check your JavaScript code and third-party scripts to eliminate any attempts to set the 'User-Agent' header, as browsers restrict the direct setting of certain headers for security reasons. After addressing these points, retry running your Live Server to see if the problems persist. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
Hello all,
So I am using a codespace and I am trying tgo open a file in my repo with the extension Live Server. I keep getting an error saying the connection is not private. So I made sure that the port is using http and its visibility is public, but that didnt help. I also tried opening the file with the preview option in codespaces and I got the same error. I looked in the console and I saw this error "Refused to set unsafe header "User-Agent". I will attach a screenshot of the error but if anyone could help me fix this bug I would appreciate it !
Beta Was this translation helpful? Give feedback.
All reactions