Skip to content

Why do I still encounter CORS issues when requesting functions despite adding a Web Platform and setting the host name? #8079

Answered by stnguyen90
OneCoser asked this question in Q&A
Discussion options

You must be logged in to vote

@OneCoser, thanks for raising this issue! 🙏🏼 When you execute a function via function domain, the request goes straight to your function and the headers you return are specified by your function. If your function is not returning the relevant CORS headers, you'll see this error.

If you want to make use of Appwrite's permissions and CORS handling, it would be best to call the Create execution API.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stnguyen90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
product / functions Fixes and upgrades for the Appwrite Functions.
2 participants
Converted from issue

This discussion was converted from issue #8077 on May 06, 2024 17:21.