Skip to content

Instantly share code, notes, and snippets.

@MilestoneTech
MilestoneTech / SalesforceApiWrapper.cfc
Created June 27, 2016 09:11 — forked from danwatt/SalesforceApiWrapper.cfc
Wrapper for the SalesForce REST API, for ColdFusion 9
/**
Copyright (C) 2012 Daniel Watt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
@MilestoneTech
MilestoneTech / gist:b2828a6db30c21379ebd
Created March 10, 2016 02:00 — forked from learncfinaweek/gist:4121370
Security - Cross-Site Scripting (XSS)

Cross-site Scripting (XSS) is the most prevalent web application security flaw and occurs when user supplied data is sent to the browser without properly validating or escaping that content. XSS flaws can allow the attacker to:

@MilestoneTech
MilestoneTech / Application.cfc
Created February 24, 2016 04:01 — forked from christierney402/Application.cfc
CF: Using "Access-Control-Allow-Origin" header in ColdFusion CFScript #snippet
component {
boolean function onRequestStart( required string targetPage ) {
var headers = getHttpRequestData().headers;
var origin = '';
var PC = getpagecontext().getresponse();
// Find the Origin of the request
if( structKeyExists( headers, 'Origin' ) ) {