Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "aaron"

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.

and your other topic RedirectResult Causes Server Error:

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

To allow CORS, see:

Answer

ABP (and ASP.NET Zero) uses Microsoft.AspNetCore.Http.Authentication's AuthenticationManager.SignInAsync method and AuthenticationProperties.IsPersistent property.

See this explanation on Stack Overflow:

Persistent cookies will be saved as files in the browser folders until they either expire or manually deleted. This will cause the cookie to persist even if you close the browser.

If IsPersistent is set to false, the browser will acquire session cookie which gets cleared when the browser is closed.

Now the reason session cookie wont clear after restarting the browser is because of chrome default settings. To fix it go to chrome settings -> advanced, and uncheck Continue running background apps when Google Chrome is closed under System section.

Answer

PR: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/pull/508">https://github.com/aspnetzero/aspnet-zero-core/pull/508</a>

Answer

Here's the EntityFramework equivalent for documentation on Custom Repositories: https://aspnetboilerplate.com/Pages/Documents/EntityFramework-Integration#DocCustomRepositoryMethods

You can add Microsoft.AspNetCore.Mvc.Core safely. Application project doesn't require that unless you want to configure web-specific attributes.

See: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2505#issuecomment-329506225.

Can you show your AppService? Remember to add the methods to your interface too.

Did you set Default Project to EntityFrameworkCore in package manager console?

I'm not sure if wildcard connection strings are valid. Try localhost\sql_sauron. I also suggest you hide the password in the commented line (even if it's invalid).

Can you try resolving the interface ITenantCustomizationAppService instead of the class?

Showing 1451 to 1460 of 1543 entries