apiembed icon indicating copy to clipboard operation
apiembed copied to clipboard

Default target option when using targets=all

Open raamdev opened this issue 10 years ago • 1 comments

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 for Google Chrome, will report the iFrame as a suspected XSS attack:

2015-04-15_18-01-16

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

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.

raamdev avatar Apr 15 '15 22:04 raamdev

issues described here:

  • [ ] add option to specify default target when using all
  • [ ] Netcraft sees this asn XSS attack (possibly because of JavaScript snippet)

ahmadnassri avatar Apr 16 '15 02:04 ahmadnassri