Starts in:
2 DAYS
1 HR
16 MIN
3 SEC
Starts in:
2 D
1 H
16 M
3 S
Open Closed

To Enable Shared Array Buffer is breaking the angular application #7092


User avatar
0
cangunaydin created
  • ABP Framework version: v8.1.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello i use web assembly inside my angular app. I need to enable shared array buffer for that to work.I need to add two headers from the server which is

"Cross-Origin-Embedder-Policy": "require-corp", "Cross-Origin-Opener-Policy": "same-origin"

to do that i edited my package.json.

this was working with lepton theme 3.0.0, now i have upgraded my project to v3.1.1 when the page is loading it tries to get a font file

and i am getting an error because of require-corp

is it possible in lepton x theme, to load this font with cross origin anonymous instead of directly importing the url https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy#avoiding_coep_blockage_with_cors

and also is there any workaround i can use to fix the issue?


2 Answer(s)
  • User Avatar
    0
    cangunaydin created

    ok i have managed to make it work by downloading the font and including it in my styles for font-bundle.css, but for the future update it could be nice for lepton theme to load the fonts with cors origin: anonymous. If there is a restriction wanted when it has been used.

    Another question with the upgrade is, now i am having lots of The localization source separator (::) not found. error. Is there any breaking change from leptonx 3.0.0 to 3.1.1? Probably at first load there is an issue with the order of the scripts loaded in the page? cause localization seems to work fine. when i look at the page.

  • User Avatar
    0
    yusuf.cirak created
    Angular Developer

    Hi,

    We're aware of these localization warnings at initial time, also we'll look into loading fonts with cross-origin:anonymous parameter.

    Thank you for the feedbacks.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06