Skip to content

OHBM Brainhack: Integrating niivue into html reports #1239

@korbinian90

Description

@korbinian90

Summary

This was an experiment to see if niivue can be easily included in the html output. The main issue identified is the CORS policy (security feature that disallows opening local files by javascript code).

Why it works on png / svg files
They are directly rendered by the browser and don't trigger the CORS policy, because no arbitrary javascript code execution can happen.

Why it doesn't work on NIfTI files with niivue
niivue is a javascript library and is not allowed to access local files, because of CORS security enforcing. To open files, they need to be served by a server with CORS headers.

Possible workarounds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions