Activities of "hanntd"

Thank you EngincanV so much, the configuration as you suggested "options.TokenCookie.SecurePolicy = CookieSecurePolicy.Always;" already help me fixed the issue. Thanks, Dharma

Just want to provide you more information of the cookie of both site with the same source code but deployed in two different models, error site on docker and good site is directly on nginx: Here is the cookie of the error site hosted on docker:

Here is the cookie of running ok site hosted directly on nginx:

Hi, I have tried to added following code as you recommended but still the same error. If I deploy directly on nginx service it doesn't has this error. Configure<AbpAntiForgeryOptions>(options => { options.TokenCookie.SecurePolicy = CookieSecurePolicy.None; });

thanks, Dharma

Hi, Because I deployed through docker container so in docker I just exposed http 8080, but in nginx proxy i already configure for https and forward it to docker container. If I expose both http and https on docker container when application will throw error of ssl. Thanks, Dharma

  • ABP Framework version: v8.3
  • UI Type: Blazor WASM
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: Please check the link of Logs
  • Steps to reproduce the issue:
  1. My application are using Blazor Web App Template
  2. I built application into docker image and push into docker server to run the container. The application is accessed from external through the nginx proxy on the same host machine of docker.
  3. I have two environments for dev and test and deployed to the same docker server:
    1. Dev:
      1. url: abc-dev.hqsoft.vn
      2. map port: 5001:8080
    2. Test:
      1. url: abc-test.hqsoft.vn
      2. map port: 5002:8080
  4. Everything are deployed ok and the application running properly but just for some initial minutes then having error with POST/PUT, it still run ok with GET, mean I still open any forms in my application to view data but every time I submit data for changing it throw the error. If I clear browser data (cache, cookies, data...) it will run ok but just for some minutes then error again.
    1. Browser console error: ERR_TOO_MANY_REDIRECTS
    2. Logs error: Antiforgery Token Validation Failed Please check the detail Logs, Dockerfile and Nginx Configuration as in the link: https://drive.google.com/drive/folders/1U0K0DjNKMB2g6BFfErLo2FSVIKLi9w0y?usp=sharing

Thanks for your provided information. Another alternative option I think can support for this problem by adding a loading bar during waiting for all blazor web assemblies loaded completely. Can we add a loading like that? Thanks

Yes, I think Lazy Loading can help me in this case and I think it is helpful to other people too. I tried to apply on ABP Blazor Web App still cannot work. I'm confuse of applying this on Blazor or Blazor Client project. Is there any sample of applying lazy loading on ABP framework? Thanks Dharma

I tried with your suggestion and faced other issues (using standard generated code used Blazor Web App template): Changed in App.razor: Error:

Hi, I have changed as you advised and can fix the problem of loading menu but when open forms of the integrated modules it shown rendering error. Thanks, Dharma

Thanks for your information. How can we resolve for this problem? Can we don't show the menu at the beginning and implement a loading or progress bar to let user know to wait until the WebAssembly loaded completely then will load the menu?

Showing 1 to 10 of 130 entries
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