Browser console shows that GET https://api.alservices.com/AbpUserConfiguration/GetAll?d=1567102056688 call fails with net::ERR_FAILED
network tab
Environment
ASP.NET Core Angular v7.1.0 .Net Core 2.2 Windows 10 Chrome Version 76.0.3809.100 (Official Build) (64-bit) Node v10.15.0 IIS 10.0.17134.1
Host appsettings.json
"App": {
"ServerRootAddress": "https://api.alservices.com/",
"ClientRootAddress": "http://{TENANCY_NAME}.alservices.com:81/",
"CorsOrigins":http://alservices.com:81,http://localhost:49152,
http://*.alservices.com:81",
"SwaggerEndPoint": "/swagger/v1/swagger.json",
"AllowAnonymousSignalRConnection": "true"
},
Observations
No errors are present in host log files, AbpUserConfiguration/GetAll executes successfully.
Question
- Why are we getting a "net::ERR_FAILED" error in Chrome?
- Why are pages not loading?
12 Answer(s)
-
0
-
0
//Configure CORS for angular2 UI services.AddCors(options => { options.AddPolicy(DefaultCorsPolicyName, builder => { //App:CorsOrigins in appsettings.json can contain more than one address with splitted by comma. builder .WithOrigins( // App:CorsOrigins in appsettings.json can contain more than one address separated by comma. _appConfiguration["App:CorsOrigins"] .Split(",", StringSplitOptions.RemoveEmptyEntries) .Select(o => o.RemovePostFix("/")) .ToArray() ) .SetIsOriginAllowedToAllowWildcardSubdomains() .AllowAnyHeader() .AllowAnyMethod() .AllowCredentials(); }); });
-
0
@oriassurant
Can I take a look at it remotely? Please send teamviewer information to [email protected]
-
0
@maliming
Please let me know when you are available for a session
-
0
We can remote now.
-
0
Hello, Please join the video call, by clicking on this link: https://go.teamviewer.com/v14/m86284895 Meeting ID: m86-284-895
-
0
-
0
Hi @oriassurant
Have you checked server-side log file ? Most of the time, CORS issues on Angular app are misleading. So, this might be something related to a server side error.
-
0
@ismcagdas Found the problem remotely. @oriassurant is working on it.
-
1
I created the same issue before and the issue seems to be from Chrome.
-
0
Why was this closed?
-
0
@oriassurant
Have you solved the problem yet? I remember that the web application responded slowly because of computer performance.