diff --git a/pages/serverless-containers/how-to/test-a-container.mdx b/pages/serverless-containers/how-to/test-a-container.mdx
index dfce1d4bd1..c1d0ca83bc 100644
--- a/pages/serverless-containers/how-to/test-a-container.mdx
+++ b/pages/serverless-containers/how-to/test-a-container.mdx
@@ -11,10 +11,6 @@ import Requirements from '@macros/iam/requirements.mdx'
This page shows you how to execute Serverless Containers from the [Scaleway console](https://console.scaleway.com). The **Test** feature of a container allows you to run your code using a selection of methods to make sure it behaves as expected.
-
-Testing **Private** Serverless Functions is not possible using the Scaleway console due to CORS limitations. Refer to the [dedicated documentation](/serverless-containers/how-to/create-auth-token-from-console/) for more information on how to secure and test a private function.
-
-
- A Scaleway account logged into the [console](https://console.scaleway.com)
@@ -35,9 +31,18 @@ Testing **Private** Serverless Functions is not possible using the Scaleway cons
7. Click **+ Advanced options** to add any required HTTP header or parameter to your container.
-8. Click **Run**.
+8. Copy the generated command, then execute it in a terminal.
+
+
+ Testing a private container requires you use an [authentication token](/serverless-containers/how-to/create-auth-token-from-console/) as a header, as shown below:
+
+ ```bash
+ export $TOKEN=
+ curl -H "X-Auth-Token: $TOKEN" \
+ ````
+
-The **Output** section displays the response from your container and the status code.
+The output of your terminal displays the response from your container, and the status code.
If you encounter a message error while testing your container, refer to the [dedicated troubleshooting](/serverless-containers/troubleshooting/tests-fail-on-container/) for more information.
diff --git a/pages/serverless-containers/troubleshooting/tests-fail-on-container.mdx b/pages/serverless-containers/troubleshooting/tests-fail-on-container.mdx
index d1d8f022b3..ada3cfe422 100644
--- a/pages/serverless-containers/troubleshooting/tests-fail-on-container.mdx
+++ b/pages/serverless-containers/troubleshooting/tests-fail-on-container.mdx
@@ -13,7 +13,7 @@ I get error messages when testing Serverless Containers using the Scaleway Conso
## Cause
-Testing **Private** Serverless Containers is not possible using the Scaleway console due to CORS limitations.
+**Private** Serverless Containers require you use an authentication token.
## Possible solutions
@@ -21,5 +21,6 @@ Testing **Private** Serverless Containers is not possible using the Scaleway con
- Make sure you have created an [authentication token](/serverless-containers/how-to/create-auth-token-from-console/) for your private function, then execute a `curl` request from a terminal, as shown below:
```bash
- curl -H "X-Auth-Token: " \
+ export $TOKEN=
+ curl -H "X-Auth-Token: $TOKEN" \
```
\ No newline at end of file
diff --git a/pages/serverless-functions/how-to/test-a-function.mdx b/pages/serverless-functions/how-to/test-a-function.mdx
index b32de54a0c..ed2c901491 100644
--- a/pages/serverless-functions/how-to/test-a-function.mdx
+++ b/pages/serverless-functions/how-to/test-a-function.mdx
@@ -11,10 +11,6 @@ import Requirements from '@macros/iam/requirements.mdx'
This page shows you how to execute Serverless Functions from the [Scaleway console](https://console.scaleway.com). The **Test** feature of a function allows you to run your code using a selection of methods to make sure it behaves as expected.
-
-Testing **Private** Serverless Functions is not possible using the Scaleway console due to CORS limitations. Refer to the [dedicated documentation](/serverless-functions/how-to/create-auth-token-from-console/) for more information on how to secure and test a private function.
-
-
- A Scaleway account logged into the [console](https://console.scaleway.com)
@@ -35,9 +31,18 @@ Testing **Private** Serverless Functions is not possible using the Scaleway cons
7. Click **+ Advanced options** to add any required HTTP header or parameter to your function.
-8. Click **Run**.
+8. Copy the generated command, then execute it in a terminal.
+
+
+ Testing a private function requires you use an [authentication token](/serverless-functions/how-to/create-auth-token-from-console/) as a header, as shown below:
+
+ ```bash
+ export $TOKEN=
+ curl -H "X-Auth-Token: $TOKEN" \
+ ````
+
-The **Output** section displays the response from your function and the status code.
+The output of your terminal displays the response from your function, and the status code.
If you encounter a message error while testing your function, refer to the [dedicated troubleshooting](/serverless-functions/troubleshooting/tests-fail-on-function/) for more information.
diff --git a/pages/serverless-functions/troubleshooting/tests-fail-on-function.mdx b/pages/serverless-functions/troubleshooting/tests-fail-on-function.mdx
index 7b4f5c5382..f892f15463 100644
--- a/pages/serverless-functions/troubleshooting/tests-fail-on-function.mdx
+++ b/pages/serverless-functions/troubleshooting/tests-fail-on-function.mdx
@@ -13,7 +13,7 @@ I get error messages when testing Serverless Functions using the Scaleway Consol
## Cause
-Testing **Private** Serverless Functions is not possible using the Scaleway console due to CORS limitations.
+**Private** Serverless Functions require you use an authentication token.
## Possible solutions
@@ -21,5 +21,6 @@ Testing **Private** Serverless Functions is not possible using the Scaleway cons
- Make sure you have created an [authentication token](/serverless-functions/how-to/create-auth-token-from-console/) for your private function, then execute a `curl` request from a terminal, as shown below:
```bash
- curl -H "X-Auth-Token: " \
+ export $TOKEN=
+ curl -H "X-Auth-Token: $TOKEN" \
```
\ No newline at end of file