@newspapper/core
    Preparing search index...

    Function installUploadsRoute

    • Serve …/uploads/<ref> to this browser context from disk.

      The permissive CORS header matches installFontRoute's and is needed for the same reason: page.setContent puts the document on an opaque origin, so every subresource fetch is CORS-mode.

      Parameters

      • ctx: BrowserContext
      • db: Database

      Returns Promise<void>