NavigationContentFooter
Jump toSuggest an edit

Tests fail on Serverless Functions

Reviewed on 14 January 2025Published 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?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2025 – Scaleway