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

Cors Issue #9433


User avatar
0
Hasan created

Dear Team,

We are deploying the application in the following url as dineconnect.xyz in azure.

We are facing CORS policy blocking issue. As shown below. We have set the App Service CORS setting as “*” for wildcard.

Here is the AppSettings

Appsetting.production.json "App": { "ServerRootAddress": "https://{TENANCY_NAME}.dineapi.xyz", "ClientRootAddress": "https://{TENANCY_NAME}.dineconnect.xyz/", "CorsOrigins": "https://*.dineconnect.xyz/,https://dineconnect.xyz ", "SwaggerEndPoint": "/swagger/v1/swagger.json", "AllowAnonymousSignalRConnection": "true" },

Appconfig.production.json "remoteServiceBaseUrl": "http://{TENANCY_NAME}.dineapi.xyz", "appBaseUrl": "http://{TENANCY_NAME}.dineconnect.xyz",


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

    Hi @hasan,

    Did you check Log file of your api project ? This might be related to another problem.

  • User Avatar
    0
    Hasan created

    There is no log at all

  • User Avatar
    0
    maliming created
    Support Team

    hi hasan

    • What is your product version?
    • What is product framework type (.net framework or .net core version)?
    • What is ABP Framework version?

    Have you tried deploying the application and angular to local iis?

    similar https://support.aspnetzero.com/QA/Questions/7212#answer-b2a3fd5d-f0c8-a32d-f279-39eec9f2d6cf