Testing a CORS or Permissions-Policy header usually means a server change and a deploy. Chrome can fake the header locally, so I can see the effect first.
Open the Network panel, right-click a request and choose Override headers. The first time, DevTools asks you to pick a folder for the override files and then to click Allow. After that it opens the Response Headers editor under the Headers tab, where you can change or add a header and reload the page to see what the browser does with it.
The edits are stored in a .headers file in the folder you picked. That file understands wildcards: * for several characters and ? for a single one. So one rule can cover a whole set of URLs, for example everything under one path.
The same menu has Override content, which saves a changed file or an API response and serves your version on reload. That is handy for mocking an XHR or fetch response while the real endpoint is not ready.
All saved overrides are listed under Sources > Overrides. To switch them off for a moment, clear Enable Local Overrides there, and Clear deletes them all.
Two caveats from the docs. The cache is disabled while overrides are enabled, so loading times will look worse than normal. And you cannot override source-mapped files: choosing Override content on one sends you to the original source files instead. Remember the override is only in your browser, so the real server still needs the change.
Further reading: Chrome DevTools: local overrides