mirror of
https://github.com/HackTricks-wiki/hacktricks.git
synced 2025-10-10 18:36:50 +00:00
GITBOOK-4452: No subject
This commit is contained in:
parent
0e1942ffda
commit
1223cf32e1
@ -845,9 +845,9 @@ Attackers can craft malicious websites that make requests to your API, potential
|
|||||||
[cors-bypass.md](../../pentesting-web/cors-bypass.md)
|
[cors-bypass.md](../../pentesting-web/cors-bypass.md)
|
||||||
{% endcontent-ref %}
|
{% 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
|
```js
|
||||||
import "server-only";
|
import "server-only";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user