I was trying to use local development in lwc (lightning web components) but I found that I can't access the org data because of cors. I try to add my local URL (http:0.0.0.0:3001) that lwc services generate for me when I run (npm start watch). But my org does not accept http url, only https, so the question is, how can I start my local server on https so I can add my URL to my Whitelisted Origins on my org? Thank you!
You can whitelist http://localhost:3001 - localhost is an allowed exception
When you want to launch
watch mode with HTTPS you can pass a custom
webpack.config.js using the
-w flag that will enable the https option in webpack.