Czytnik Faktur KSeF e-invoice viewer in your browser

How it works and how to check it

The file's contents do not leave your browser. Ads on this page have no access to the invoice. This page explains why, and how you can check it yourself.

Two layers

The reader page has two parts. The outer page holds the header, the descriptions and the footer, and it is where ads will be shown. The reader itself is a separate document served from /app/ and embedded in an iframe with the sandbox attribute.

The frame does not get allow-same-origin, so the browser treats it as a foreign site with an opaque origin. Scripts on the outer page, ad scripts included, cannot look into the frame or read the loaded file. Reading the file, displaying the invoice, running the checks and creating the PDF all happen inside the frame.

The frame and the outer page pass each other two things only: the frame height and the language. The invoice content, the file name and the check results stay in the frame.

The reader without ads

At /app/ the reader runs on its own, without the outer page, ads or analytics. That is the easiest place to check whether the file is sent anywhere:

  1. Open /app/ in a new tab and wait for the sample invoice.
  2. Open the developer tools (F12 or Ctrl+Shift+I, on a Mac Cmd+Option+I) and go to the Network tab.
  3. Clear the request list.
  4. Load your own XML file and wait for the invoice preview and the check results.

No address outside czytnikfaktur.com appears in the list. The browser fetches some parts of the reader only when they are needed: the FA(2) or FA(1) schema when you first load a file of that version, and the PDF module when you click "Save PDF". These are ordinary downloads of files under /app/assets/ from our server. You can click each of them to check: they are GET requests for reader files and carry no invoice data. The invoice preview and the PDF are generated in your browser. Entries whose address starts with data: or blob: are data in the browser's memory, not network connections. Browser extensions can send requests of their own, so it is best to check in a private window without extensions.

The Content-Security-Policy header

Our server sends this header with every file under /app/. It is shown exactly as we pass it to CloudFront:

Content-Security-Policy: default-src 'none'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self'; font-src 'self'; img-src 'self' data: blob:; connect-src 'none'; frame-ancestors 'self'; base-uri 'none'; form-action 'none'; sandbox allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox

connect-src 'none' blocks fetch, XMLHttpRequest, WebSocket and sendBeacon for the reader's scripts, and form-action 'none' blocks form submission. Scripts, styles, fonts and images may come only from our server ('self'); images also from the browser's memory (data:, blob:). 'wasm-unsafe-eval' allows WebAssembly, which runs the schema check (libxml2). The sandbox directive isolates the reader in the same way when you open /app/ in an ordinary tab.

To see the header, reload /app/ with the Network tab open, click the first entry (the document) and look at the Response Headers.

Site version

The footer of every page shows the short hash of the commit the live version was built from. It is now 4d02c6a. If you report a bug, include it so we know which version you saw.

The "Check the link in KSeF" button

Next to the QR code (KOD I) there is a "Check the link in KSeF" button. Only a click opens the Ministry of Finance verification page at qr.ksef.mf.gov.pl in a new tab (or qr-test or qr-demo if you pick the test or demo environment). The address contains three items: the seller's NIP, the issue date and the SHA-256 hash of the file. The invoice contents cannot be reconstructed from the hash, and no other invoice data is sent. The Ministry's server also sees your IP address, as any site you visit does. If you do not click the button, nothing goes to the Ministry.

Who wrote the texts

The texts on this site, in the reader and in the guides were written by the AI model Claude (Anthropic) to our brief. A second model, Codex (OpenAI), reviewed the language and the translations, and we compared the legal provisions and dates with their sources. The texts are not legal or tax advice. If you find a mistake, write to contact@webinstudio.co.kr.