Microservice Solution: CORS Configuration

Cross-Origin Resource Sharing (CORS) is a security feature that allows web applications to make requests to a different domain than the one that served the web page. This feature is essential for microservice solutions that have multiple services and applications running on different domains.

In the microservice solution template, the CORS configuration is set up in the appsettings.json file of the related project. Generally, you need to configure CORS for authentication server and gateway applications. Since these applications are the entry points for the front-end applications, they need to accept requests from different origins. The default configuration is as follows:

  "App": {
    "CorsOrigins": "http://localhost:44388,http://localhost:44324,http://localhost:44377"
  }
Was this page helpful?
Please make a selection.
Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

In this document

testtestOtherLiveEvents

19 Jun, 03:00
Online
Watch the Event
Mastering ABP Framework Book
Mastering ABP Framework

This book will help you gain a complete understanding of the framework and modern web application development techniques.

Learn More