79112196

Date: 2024-10-22 01:55:14
Score: 1.5
Natty:
Report link

Athough you added parameter: {withCredentials: true} in your request, the browser still not included cookies to send your request because: If you still run your project without SSL, the browser still not include cookies when sending HTTP request. To add SSL into your localhost, let try using mkcert, by follow: enter link description here

  1. First, we need install certificate authorities (CAs) corresponding with you machine. Incase , you use window, let try: enter link description here

  2. follow mkcert instruction

  3. add SSL to your front-end project

  4. Config Angular.json file to use SSL Config 'option' inside the 'serve' like that:

    "options": { "ssl": true, "sslCert": "ssl/localhost.pem", "sslKey": "ssl/localhost-key.pem" },

angular.json configuration

Finally, you run your app, it will run localhost with SSL: https://localhost:4200/

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lê Hồng Thái