3

Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR when using react vite through network.

When accessing the "http://localhost:5173/" it is working fine but when accessing "http://192.168.101.222:5173/" it is showing white blank screen and show following error in console.

enter image description here

I tried to install basicSsl package using "import basicSsl from '@vitejs/plugin-basic-ssl'" and added it to vite.config.js :


export default defineConfig({
    plugins: [
        basicSsl(),]
})

but then "https://192.168.101.222:5173/" is working and the localhost is not working and showing following when opening in browser.

enter image description here

I am using Vite 4.1.1 . It was working previously, but not it is not working.Are there any additional steps or configurations that I might be missing?

0

1 Answer 1

0

hello i have this error too with laravel and Vite

i removed in hot file in public folder in laravel application and thats run

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.