Proxy/CORS problem of WMS/WMTS

Hi all,

I've tried to run the same WMTS code in three different sandcastle environment: Cesium official web site, local-host IIS and local-host node.js. Only the environment of local-host node.js could be displayed the correct result (nodejs.png) and the others respond to the error messages about proxy and CORS. I've added the CORS code in web.config file but it is still not workable. I've no idea about that. Does anyone have any suggestions to solve this issue?

The WMTS Code:
var viewer = new Cesium.Viewer('cesiumContainer');

// Add a WMS imagery layer
var imageryLayers = viewer.imageryLayers;
imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider({
    url : ‘http://maps.nlsc.gov.tw/S_Maps/wmts’,
    layer : ‘EMAP’,
    style : ‘default’,
    format : ‘image/png’,
    tileMatrixSetID : ‘GoogleMapsCompatible’,
    proxy : new Cesium.DefaultProxy(’/proxy/’)
}));