4

I am trying to figure out how to configure my Angular CLI environment to run in SSL HTTPS mode.

Right now, it runs in the regular http://localhost:4200 but it can't access the webAPI which is running https mode. I was able to get data from the webapi via google postman but not with my angular app.

In my start, I typed mmc and found my personal cert which shows as

localhost IIS Express Development

I read up on stackoverflow about changing the settings in a json file. I can't find the angular.json file. I found the package.json in the cli folder but when

how do I setup my angular app to run in https mode to access the data.

Right now, it just hangs.

Thanks.

1

1 Answer 1

12

You can run ng serve --ssl true

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.