Starts in:
0 DAY
20 HRS
41 MIN
59 SEC
Starts in:
0 D
20 H
41 M
59 S

Microservice Solution: CORS Configuration

You must have an ABP Business or a higher license to be able to create a microservice solution.

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"
  }

Contributors


Last updated: July 31, 2024 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

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
Community Talks

What’s New with .NET 9 & ABP 9?

21 Nov, 17: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