Skip to content

Commit

Permalink
fix(parcel-sample): use COOP/COEP policies compatible with window.opener
Browse files Browse the repository at this point in the history
  • Loading branch information
kherock committed Nov 8, 2021
1 parent 6309bc3 commit d491e94
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .proxyrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ module.exports = function (app) {
})
);

app.use((req, res, next) => {
app.use('/code-flow-identityserver', (req, res, next) => {
res.setHeader('Cross-Origin-Opener-Policy', 'unsafe-none');
res.setHeader('Cross-Origin-Embedder-Policy', 'unsafe-none');
next();
});

next();
});
};

0 comments on commit d491e94

Please sign in to comment.