Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

SSL enable and CorsOrigins #9653


User avatar
0
lweng567 created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? Lastest Zero
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .netCore

My question is similar to #7063.

I got my certificates set up on both Client (angular)and Server(Core API). The CorsOrigins setting in appsetting.json is using ip address, if my certificate is signed to www.rtime.com.au and my accessing url will be www.myco.com.au:4432 to my anguar client for example, do i then change the CorsOrigins to the www.myco.com.au, like

"App": { "ServerRootAddress": "https://www.myco.com.au:4439/", "ClientRootAddress": "https://www.myco.com.au:4432/", "CorsOrigins": "https://www.myco.com.au:4432" },


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @lweng567

    You can use multiple URLs in CorsOrigins. So, you can write;

    "CorsOrigins": "https://www.myco.com.au,https://www.myco.com.au:4432"

    Have you tried this ?

  • User Avatar
    0
    lweng567 created

    Yes, tried it. It works