Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1793

I need Https support in React

$
0
0

I need support of HTTPS in my React app for development, not production

I've installed package "plugin-basic-ssl" and configured vite.config.ts as follow

import { defineConfig } from 'vite'import react from '@vitejs/plugin-react-swc'import basicSsl from '@vitejs/plugin-basic-ssl'// https://vitejs.dev/config/export default defineConfig({  plugins: [react(), basicSsl()],  server: {    port: 3000,    strictPort: true,    ...  },})

It works fine, but I'm always getting this message "Your connection is not private" because of self-signed certificate and I have to click "Proceed to localhost (unsafe)" every time. Is there way to get rid of this warning? Thanks!


Viewing all articles
Browse latest Browse all 1793

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>