Closed lkoehl closed 1 year ago
@lkoehl, thanks for raising this issue! ๐ I tried to reproduce your issue, but I was able to successfully fetch a markdown file and get the text. Would you please make sure your project ID is correct and use https for your endpoint?
@stnguyen90 thanks. It's works with Safari when setting the endpoint to https://localhost/v1
. Maybe the README needs an update?
@gewenyu99, thoughts on making all of our examples use HTTPS since sometimes there's weird behavior when using HTTP (due to how browsers handle cookies and/or redirects)?
@gewenyu99, we seem to be inconsistent. Most are HTTPS except:
I agree. I want to make everything https. This will be true esp. for cloud anyway. I have this written down in the doc contribution guide draft :)
Localhost and https can create issues on top without any configuration. We should double check that.
Thinking about local dev servers that connect to Appwrite which don't support https oob. Then you run into http -> https conflicts.
This issue only occurs in browsers, that's why non-browser sdks might target https.
Localhost and https can create issues on top without any configuration. We should double check that.
Thinking about local dev servers that connect to Appwrite which don't support https oob. Then you run into http -> https conflicts.
This issue only occurs in browsers, that's why non-browser sdks might target https.
I think the real solution will be when we have cloud ;)
Then we can just use the cloud URL as the default example.
๐ Reproduction steps
Running a local instance of appwrite, use Safari as a browser and fetching data from a link returned by
getFileView
๐ Expected behavior
Returns the data from the file.
๐ Actual Behavior
๐ฒ Appwrite version
Version 0.9.x
๐ป Operating system
MacOS
๐งฑ Your Environment
No response
๐ Have you spent some time to check if this issue has been raised before?
๐ข Have you read the Code of Conduct?