Skip to content

Commit

Permalink
for cors:specific origin, credentials true and for urlEncoded False b…
Browse files Browse the repository at this point in the history
…ecause this is what I have seen in examples and docs
  • Loading branch information
stefanaz2 committed Jan 26, 2023
1 parent b9a57f5 commit 58b16c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/sso/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const routes = require('./routes');
require('./authentication');

const service = new Satellite({
cors: { origin: 'https://telescope.cdot.systems', credentials: true },
router: routes,
beforeRouter(app) {
// Initialize and use Session and Passport middleware on the app. In production
Expand Down
2 changes: 1 addition & 1 deletion src/satellite/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function createApp(router, options = {}) {
}

// Parse application/x-www-form-urlencoded
app.use(express.urlencoded({ extended: true }));
app.use(express.urlencoded({ extended: false }));
// Parse application/json
app.use(express.json());

Expand Down

0 comments on commit 58b16c6

Please sign in to comment.