Kong / Kong/apiembed

Default target option when using targets=all

Open
#15 1 comment 0 reactions 1 assignee Claimed by @ahmadnassri View on GitHub
Dominant language
Pug
Stars
413
Forks
52
PR merge metrics
No merged PRs in 30d

Description

When using a comma separated list of all the desired targets (e.g., `targets=php:curl,php:http1,php:http2,javascript:jquery,javascript:xhr,shell:curl,shell:wget,shell:httpie`), some browser extensions, such as the [Netcraft Extension](https://chrome.google.com/webstore/detail/netcraft-extension/bmejphbfclcpmpohkggcjeibfilpamia?hl=en) for Google Chrome, will report the iFrame as a suspected XSS attack:

![2015-04-15_18-01-16](https://cloud.githubusercontent.com/assets/53005/7170421/f3ce279c-e39b-11e4-9cd8-9689bc13f94f.png)

If we change the source URL to use `targets=all`, the Netcraft Extension doesn't complain, however we then have no way of specifying a default target, so we end up with the default of C, which for our particular use-case doesn't make sense (we'd like to use `php:curl` as the default):

![2015-04-15_18-21-45](https://cloud.githubusercontent.com/assets/53005/7170469/5e0111b0-e39c-11e4-8026-15fb8b31c154.png)

If there was another option, e.g., `default-target`, that could be used in conjunction with `targets=all`, then we could specify `targets=all&default-target=php:curl`, so that PHP would be the default option selected in the widget.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.