@cornerstonejs/nifti-volume-loader
TypeScript icon, indicating that this package has built-in type declarations

2.14.2 • Public • Published

@cornerstonejs/nifti-volume-loader

Nifti volume loader for the cornerstone3D framework.

Injecting headers

You can inject custom headers to the requests made by the loader. This is useful for authentication purposes.

import { init } from '@cornerstonejs/nifti-volume-loader';

niftiInit({
  beforeSend: (xhr, headers, url) => {
    headers['Cornerstone3D-Is-Awesome'] = 'True';
    return headers;
  },
});

Now, every request made by the loader will have the Cornerstone3D-Is-Awesome header with the value True.

Readme

Keywords

none

Package Sidebar

Install

npm i @cornerstonejs/nifti-volume-loader

Weekly Downloads

2,380

Version

2.14.2

License

MIT

Unpacked Size

42.9 kB

Total Files

41

Last publish

Collaborators

  • jamesapetts
  • cornerstonejs-bot
  • swederik
  • dannyrb
  • evren217
  • sedghi