mgungorchamp / InfoBoard

MAUI Framerwork Hello World App
3 stars 2 forks source link

CORS policy: No 'Access-Control-Allow-Origin' #18

Open mgungorchamp opened 1 year ago

mgungorchamp commented 1 year ago

This morning I got this Error - crashed the xiaomi - so far Windows and FireTv did not show this behavior yet.

It seems CORS ( Cross-Origin Requests (CORS)) policy - but I could not find how to give access

[0:] Navigating to Web Media #: https://fast.com/ [chromium] [INFO:CONSOLE(0)] "Access to XMLHttpRequest at 'https://api.rlcdn.com/api/identity/envelope?pid=1258' from origin 'https://weather.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.", source: about:srcdoc (0) [cr_ChildProcessConn] onServiceDisconnected (crash or killed by oom): pid=10174 bindings:W S [chromium] [ERROR:aw_browser_terminator.cc(156)] Renderer process (10174) crash detected (code 5). [chromium] [FATAL:crashpad_client_linux.cc(732)] Render process (10174)'s crash wasn't handled by all associated webviews, triggering application crash. [libc] Fatal signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0xcc9e58be in tid 10036 (board.infoboard), pid 10036 (board.infoboard)

Posted my question https://github.com/search?q=repo%3Adotnet%2Fmaui++webview&type=issues

This guy has some solution but I could not understand https://github.com/dotnet/maui/issues/4003

Web Source https://learn.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-7.0

But IDK yet the solution

mgungorchamp commented 1 year ago

Not sure how related https://learn.microsoft.com/en-us/dotnet/api/android.webkit.websettings.allowuniversalaccessfromfileurls?view=xamarin-android-sdk-13