Skip to content

Commit

Permalink
More link fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Meschreiber committed Oct 3, 2024
1 parent d99f63a commit 616ed98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/security/cors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Under the hood, the batteries-included `apollo-server` wraps around middleware p
If you're using another integration of Apollo Server, you can add the `cors` configuration option to your framework-specific middleware function to change your server's CORS behavior. To learn more about the CORS defaults and options for your integration of Apollo Server, see [CORS configuration options](../api/apollo-server/#cors-1).

Below is an example of setting up CORS with the [`apollo-server-express`](../integrations/middleware#swapping-out-apollo-server) package:
Below is an example of setting up CORS with the [`apollo-server-express`](/apollo-server/v3/integrations/middleware#swapping-out-apollo-server) package:

```js
// ... set up the server
Expand All @@ -132,7 +132,7 @@ server.applyMiddleware({
});
```

You can also [remove CORS middleware entirely](../api/apollo-server#cors) to disable cross-origin requests. In the batteries-included `apollo-server` and `apollo-server-express`, you do this by passing `cors: false`. This is [recommended for subgraphs in a federated graph](/federation/subgraphs/#securing-your-subgraphs).
You can also [remove CORS middleware entirely](../api/apollo-server#cors) to disable cross-origin requests. In the batteries-included `apollo-server` and `apollo-server-express`, you do this by passing `cors: false`. This is [recommended for subgraphs in a federated graph](/graphos/routing/cloud/secure-subgraphs).

### Passing credentials with CORS

Expand Down

0 comments on commit 616ed98

Please sign in to comment.