Open Closed

CORS error while trying to call external API #4576


User avatar
0
ccernat created
  • ABP Framework version: v7.0.1

  • UI type: Blazor

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace:

  • Steps to reproduce the issue:"

Hi, SupportTeam!

First of all, I hope you will all recover from the devastating loss and pain brought on by the earthquake. I also hope you and your loved ones are OK. I am so very sorry.

I have a project inside an ABP Framework solution which is an API client to access an external API. From the get go, any test did with Postman is working correctly.

Structure:

image.png

Module file:

image.png

Extension file:

image.png

The rest are related to the API itself - models, client, etc.

The services are properly initialized. I can inject them with no problem in any page on the frontend.

image.png

But I always get the same error:

image.png

image.png

The server doesn't have CORS policies, and any test with something different than ABP works.

What am I doing wrong? Any tips would be appreciated.

Thanks,
Catalin


No answer yet!
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 11, 2025, 10:10