Tests fail on Serverless Functions
Reviewed on 14 January 2025 • Published on 14 January 2025
ProblemLink to this anchor
I get error messages when testing Serverless Functions using the Scaleway Console.
CauseLink to this anchor
Testing Private Serverless Functions is not possible using the Scaleway console due to CORS limitations.
Possible solutionsLink to this anchor
-
Change the visibility of your function to public. Public functions can be executed anonymously.
-
Make sure you have created an authentication token for your private function, then exexute a
curl
request from a terminal, as shown below:curl -H "X-Auth-Token: <YOUR_AUTH_TOKEN>" \ <YOUR_FUNCTION_ENDPOINT>
Was this page helpful?