Main menu
This commit is contained in:
@@ -879,9 +879,10 @@ where the page came from:
|
||||
|
||||
- **Page served by the game server** (the default): that server already chose every line of JavaScript on the page, so
|
||||
running its mods doesn't trust it any more than loading the page did.
|
||||
- **Page from one origin, game server on another** (`?server=`): mod code from that server runs with _the page's_
|
||||
origin, including its local storage. The client shows the server's mod list and asks before loading anything, and
|
||||
remembers the answer per server and mod hash. The server needs CORS headers on `build/mods/`.
|
||||
- **Page from one origin, game server on another** (a different server typed in the title screen, or `?server=`): mod
|
||||
code from that server runs with _the page's_ origin, including its local storage. The client shows the server's mod
|
||||
list and asks before loading anything, and remembers the answer per server and mod hash. The server needs CORS
|
||||
headers on `build/mods/`.
|
||||
- The hash check confirms the files are the ones the server listed. It doesn't protect against a malicious server.
|
||||
|
||||
**Server scripts.** They run in a worker with **no Deno permissions** (Deno worker permissions; currently needs
|
||||
|
||||
Reference in New Issue
Block a user