Back

[SOLVED] xxxx.github.io flutter web request appwrite CROS

  • 0
  • Flutter
joser
10 Nov, 2023, 09:56

I have configured *. github.io github.io xxxx.github.io web app

TL;DR
The user was initially facing an issue with CROS (Cross-Origin Resource Sharing) in a Flutter web request app connected to Appwrite. After resetting their Google Chrome settings, the issue was resolved. The user also clarified that they are using the Flutter version of Appwrite, not a custom request. They asked for confirmation of the project through the request headers. The problem is now solved, and the thread can be closed.
Haimantika
10 Nov, 2023, 12:48

Can you explain your problem? Maybe show the error you are facing?

joser
13 Nov, 2023, 00:52
Drake
13 Nov, 2023, 01:20

Would you please check the request headers to confirm the project is correct?

joser
13 Nov, 2023, 06:16

I am currently using the Dart_Appwrite SDK. This is not my custom request, but the encapsulation method.

Drake
13 Nov, 2023, 14:49

Uhh you shouldn't be using that package in a flutter app πŸ‘€ that SDK is for server side code.

Drake
13 Nov, 2023, 14:50

This looks like a browser dev tool. You should be able to inspect the request headers via the browser dev tool

joser
14 Nov, 2023, 01:07

Sorry I made a mistake, I'm using the Flutter version of Appwrite. appwrite: ^11.0.0

joser
14 Nov, 2023, 01:09

The header message I see using the power builder in Google Chrome is as follows Content-Type: application/json Referer: https://winnerapp.github.io/ User-Agent: Mozilla/5.0 (iPad; CPU OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 X-Appwrite-Project: winner-app X-Appwrite-Response-Format: 1.4.0 X-Sdk-Language: flutter X-Sdk-Name: Flutter X-Sdk-Platform: client X-Sdk-Version: 11.0.0

Drake
14 Nov, 2023, 18:01

What exactly did you configure for the platform? Can you share a screenshot?

joser
15 Nov, 2023, 00:41
Drake
15 Nov, 2023, 01:41

You shouldn't be calling set self signed because cloud has a valid certificate

Drake
15 Nov, 2023, 01:41

Anyways, I was asking about the web platform you added in the Appwrite console

joser
15 Nov, 2023, 05:44

The web platform has been added, but I reset all settings of Google Chrome and it's ok.

Drake
15 Nov, 2023, 13:32

So everything is working now and this can be marked as solved?

joser
21 Nov, 2023, 07:56

So far, it can be closed.

D5
21 Nov, 2023, 08:35

[SOLVED] xxxx.github.io flutter web request appwrite CROS

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more