Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding the Navigator into a webpage as a widget #13

Closed
jburns12 opened this issue Mar 5, 2018 · 1 comment
Closed

Embedding the Navigator into a webpage as a widget #13

jburns12 opened this issue Mar 5, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request seeking feedback Seeking feedback from the community on this issue

Comments

@jburns12
Copy link
Contributor

jburns12 commented Mar 5, 2018

This would allow a developer of other web apps and webpages to embed a Navigator instance, potentially with many of the features such as technique annotating disabled and not visible.

@jburns12 jburns12 added the enhancement New feature or request label Mar 5, 2018
@jburns12 jburns12 added the seeking feedback Seeking feedback from the community on this issue label Mar 19, 2018
@isaisabel isaisabel self-assigned this Mar 19, 2018
@isaisabel
Copy link
Contributor

Embedding can be achieved with an iframe:
<iframe src="https://mitre.github.io/attack-navigator/enterprise/" width="1000" height="500"></iframe>

This is well paired with the feature defined in #20, which allows the user to specify a layer to open in the navigator by default. For example, the following iframe will embed a navigator instance showing *bear APTs:
<iframe src="https://mitre.github.io/attack-navigator/enterprise/#layerURL=https%3A%2F%2Fraw.githubusercontent.com%2Fmitre%2Fattack-navigator%2Fmaster%2Flayers%2Fdata%2Fsamples%2FBear_APT.json" width="1000" height="500"></iframe>
Note: as of 20 March 2018 the layerURL feature is only present in our develop branch and therefore not present in the hosted version. The above code will be supported in a future update of our hosted instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request seeking feedback Seeking feedback from the community on this issue
Projects
None yet
Development

No branches or pull requests

2 participants