parcel-bundler / website

🌎 Parcel website
https://parceljs.org
MIT License
351 stars 466 forks source link

Describe how to enable COEP #884

Open mischnic opened 3 years ago

mischnic commented 3 years ago

https://github.com/parcel-bundler/parcel/issues/6499#issue-926561639

https://github.com/parcel-bundler/parcel/discussions/6976#discussioncomment-1423396

Add a .proxyrc.js with

module.exports = function (app) {
  app.use((req, res, next) => {
    res.removeHeader('Cross-Origin-Resource-Policy');
    res.removeHeader('Cross-Origin-Embedder-Policy');
    next();
  });
};
devongovett commented 3 years ago

Or rather, enable it, now that parcel-bundler/parcel#6789 has been merged. 😉

AnthonyHidalgo commented 3 years ago

Agreed @devongovett