Starts in:
2 DAYS
8 HRS
27 MIN
51 SEC
Starts in:
2 D
8 H
27 M
51 S
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:

Module file:

Extension file:

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.

But I always get the same error:

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!
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06