Why do I still encounter CORS issues when requesting functions despite adding a Web Platform and setting the host name? #8079
-
👟 Reproduction steps👍 Expected behaviorRequest successful 👎 Actual BehaviorRequest error 🎲 Appwrite versionAppwrite Cloud 💻 Operating systemMacOS 🧱 Your EnvironmentNo response 👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
|
Beta Was this translation helpful? Give feedback.
Answered by
stnguyen90
May 6, 2024
Replies: 1 comment
-
@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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stnguyen90
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.