Tests fail on Serverless Functions
Reviewed on 14 January 2025 • Published on 14 January 2025
Problem
I get error messages when testing Serverless Functions using the Scaleway Console.
Cause
Testing Private Serverless Functions is not possible using the Scaleway console due to CORS limitations.
Possible solutions
-
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?