Flutter Web App Samesite Cookie Error in Chrome. Flutter/Dart - dart

My api call works fine on the mobile emulator but does not work in chrome.
The problem is that I am not getting the set-cookie from the header response.
This is the header response when using the mobile emulator :
and this is the header response when using chrome to run the app :
this is the error that I am getting when using chrome to run my app :
is there a solution to this or any workaround would help a lot. Thanks!

Related

Can't Authorize when i try to login to my django project from iphone

I have created a website using Django (Django-rest-framework, django-rest-knox), ReactJS and redux together. I have run the server from 0.0.0.0:8000 to reach the project from my iPhone and test there. The Website has been loaded however when I try to log in, it can not authorize and gives 401 error. On the other hand, I can authorize without any problem from browsers on PC (chrome, opera, firefox etc.) and android devices.
I have also installed Opera Mini to my iPhone and, again I couldn't authorize it. I don't know which part of my code I have share. I also couldn't find any information about this issue. I would be glad if anyone can help me.

Serviceworker registration - weird issue

On my PWA dev machine, when I open it using localhost/127.0.0.1 it works fine, DOM has navigator.serviceWorker
However when I am trying using public url (using grok)- DOM is not having serviceWorker in navigator
Same machine, same browser but strange issue.
Any way to fix this?
Once you get past dev testing, your PWA URL needs to be HTTPS
If there are still issues, use the Chrome Lighthouse tool to give you hints on what still needs to be corrected

Managed Kiosk App from working Firebase/Firestore PWA getting permission problems

I have a working PWA at running at a URL like https://app.example.com/ and I'm trying to wrap it in a webview to ship to managed kiosks. We have been testing the app without authentication persistence and everything has been fine. Once presistance was added to the webview with <webview partition="persist:example-kiosk" ...> some queries to Firestore stopped working. Debugging the app shows the following error:
Failed to load https://firestore.googleapis.com/google.firestore.v1beta1.Firestore/Listen/channel?gsessionid=...: No 'Access-Control-Allow-Origin' header is present`
How can I get Firestore working in a chrome app webview? Any chance google is working on a easier way to use PWAs as a managed kiosk app?

Failed to load resource: Origin null is not allowed by access-control-allow-origin

I made an ionic app on android, it is working fine ob both desktop and android phone. Now i switched to ios version. It is working fine with safari, but when i start remote debugging or on simulator, the app goes blank. I saw the errors with web inspecting in safari :-
file:///Users/apple/Library/Developer/CoreSimulator/Devices/20A63F09-9642-4B4A-A560-ED38FFEF2A95/data/Containers/Bundle/Application/59CCC7FD-EEEE-43EC-A833-60CA6322E7E6/Monitz.app/www/templates/login.htmlFailed
to load resource: Origin null is not allowed by
Access-Control-Allow-Origin.
XMLHttpRequest cannot load
file:///Users/apple/Library/Developer/CoreSimulator/Devices/20A63F09-9642-4B4A-A560-ED38FFEF2A95/data/Containers/Bundle/Application/59CCC7FD-EEEE-43EC-A833-60CA6322E7E6/Monitz.app/www/templates/login.html.
Origin null is not allowed by Access-Control-Allow-Origin.
It is not able to find the templates in ionic app. I don't know why. Please help me with this issue.
Thanks

Flex Mobile HTTP Request Error on apk file

I'm developing an android application using Flex Builder 4.6.
It's fairly complicated app and I'm using HTTPService for communication with the server.
It was working fine until recently it stops working after making the apk file.
So From desktop simulator, in debug-mode in the mobile, the HTTTPService just works fine but when I make a release build and install it in the mobile, it just doesn't work.
I tried to track down the error, it's just simply shows 'HTTP request error'.
For example here is the mxml code I'm using
<s:HTTPService id="sayHi" method="GET" result="sayHi_resultHandler(event)" fault="sayHi_faultHandler(event)"
url="https://zaawi.co.uk/developer/controller.php" useProxy="false">
<s:request xmlns="">
<h>sayHi</h>
</s:request>
</s:HTTPService>
I checked the url https://zaawi.co.uk/developer/controller.php?h=sayHi in the browser which works fine, as well as, in the simulator and debugging mode.
The server(php) sending response in xml format
print '<?xml version="1.0" encoding="UTF-8"?><data><hi>hello world</hi></data>';
It was working fine for almost a year and just stopped working recently.
Please let me know if anybody else had this problem and how can I resolve this.
Many thanks in advance
I had a similar problem a while ago, my HTTPService requests started to fail and i didn't got anything useful in the FaultEvent, but after hours of trying different things i noticed that i had the network monitor enabled in flex, and since i had nothing to loose, i disabled it a voila! The app worked again!
I think when you have the network monitor enabled, the app redirects all requests thru a local proxy or something and that way you can sniff the requests, but this seems to stay when you create a release version and mess all requests.
So if you have network monitor enabled, just disable it, and then try to build your app again.
It appears that it is related to how the captive runtime calls https endpoints. Someone over on this thread Adobe AIR mobile app fails when using HTTPS on Nexus tablet, but works on Kindle figured out that by switching from the captive runtime to using the shared AIR runtime, the error went away. You may also want to try the latest AIR SDK and see if that solves the problem (although I've been seeing issues with the apps working on iOS using the 3.8 beta build, so you may want to try 3.7 first).

Resources