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

CORS Error - CHAT #8803


User avatar
0
mahendra created

Hi,

We are using ASPNetZero 8.0 with Angular and .Net Core. When we enables the chat feature, it works well at localhost. But when we deploy the server and the client at Azure (as a WebApp), we are getting following CORS error in chat.

"The Same Origin Policy disallows reading the remote resource at http://ivendretail-server.azurewebsites.net//signalr-chat/ne…J7JkmqGyBT%2FCt7%2BGZNIlnt2Txn2BCsar4wse6e%2FBAbemkdwA%3D%3D. (Reason: expected ‘true’ in CORS header ‘Access-Control-Allow-Credentials’)."

Please advise..

Regards, Mahendra


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

    Hi @mahendra,

    Could you share

    1. remoteServiceBaseUrl and appBaseUrl in your published appconfig.production.json
    2. CorsOrigins in published appsettings.json (or appsettings.production.json according to yor published environment)