GITBOOK-4452: No subject

This commit is contained in:
SirBroccoli 2024-12-18 02:33:39 +00:00 committed by gitbook-bot
parent 0e1942ffda
commit 1223cf32e1

View File

@ -845,9 +845,9 @@ Attackers can craft malicious websites that make requests to your API, potential
[cors-bypass.md](../../pentesting-web/cors-bypass.md)
{% endcontent-ref %}
## Server code exposure in Client Side
### Server code exposure in Client Side
It's can easy to **use code used by the server also in code exposed and used by the client side**, the best way to ensure that a file of code is never exposed in the client side is by using this import at the beggining of the file:
It's can easy to **use code used by the server also in code exposed and used by the client side**, the best way to ensure that a file of code is never exposed in the client side is by using this import at the beginning of the file:
```js
import "server-only";