GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • i18n/en-US
    • articles
      • server-request-and-response.md
    • components
      • Home.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎i18n/en-US/articles/server-request-and-response.md‎

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 numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Other available keys are:
4040

4141
- **port**: `integer`
4242
- **maximumPayloadSize**: `string`
43-
- **cors**: `object`
4443

4544
```jsx
4645
// server.js
@@ -52,16 +51,10 @@ const context = Nullstack.start(Application);
5251
const { server } = context;
5352
server.port = 3000;
5453
server.maximumPayloadSize = '5mb';
55-
server.cors = {
56-
origin: 'http://localhost:6969',
57-
optionsSuccessStatus: 200
58-
}
5954

6055
export default context;
6156
```
6257

63-
The `cors` object will be passed as the argument to [express cors plugin](https://expressjs.com/en/resources/middleware/cors.html).
64-
6558
## Request and Response
6659

6760
Every server function context is merged with the original `request` and `response` objects from Express.
Collapse file

‎i18n/en-US/components/Home.yml‎

Copy file name to clipboardExpand all lines: i18n/en-US/components/Home.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ trinity:
2929
- title: "Lightweight API requests"
3030
image: "/illustrations/nulla-dps.webp"
3131
text:
32-
"Subsequent server functions will fetch JSON from an automaticallty
32+
"Subsequent server functions will fetch JSON from an automatically
3333
generated microservice API, deserialize the response, update the
3434
aplication state, and rerender the page out of the box"
3535
features:

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.