GeezerVison is showing github.com — :memo: fix typo and deprecate cors · SatsCzar/nullstack.github.io@3f828e0
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: i18n/en-US/articles/server-request-and-response.md -7Lines changed: 0 additions & 7 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -40,7 +40,6 @@ Other available keys are: |
40 | 40 |
|
41 | 41 | - **port**: `integer` |
42 | 42 | - **maximumPayloadSize**: `string` |
43 | | -- **cors**: `object` |
44 | 43 |
|
45 | 44 | ```jsx |
46 | 45 | // server.js |
@@ -52,16 +51,10 @@ const context = Nullstack.start(Application); |
52 | 51 | const { server } = context; |
53 | 52 | server.port = 3000; |
54 | 53 | server.maximumPayloadSize = '5mb'; |
55 | | -server.cors = { |
56 | | - origin: 'http://localhost:6969', |
57 | | - optionsSuccessStatus: 200 |
58 | | -} |
59 | 54 |
|
60 | 55 | export default context; |
61 | 56 | ``` |
62 | 57 |
|
63 | | -The `cors` object will be passed as the argument to [express cors plugin](https://expressjs.com/en/resources/middleware/cors.html). |
64 | | - |
65 | 58 | ## Request and Response |
66 | 59 |
|
67 | 60 | Every server function context is merged with the original `request` and `response` objects from Express. |
|
Collapse file
Copy file name to clipboardExpand all lines: i18n/en-US/components/Home.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -29,7 +29,7 @@ trinity: |
29 | 29 | - title: "Lightweight API requests" |
30 | 30 | image: "/illustrations/nulla-dps.webp" |
31 | 31 | text: |
32 | | - "Subsequent server functions will fetch JSON from an automaticallty |
| 32 | + "Subsequent server functions will fetch JSON from an automatically |
33 | 33 | generated microservice API, deserialize the response, update the |
34 | 34 | aplication state, and rerender the page out of the box" |
35 | 35 | features: |
|