fix csp sandbox with stack, globalDefine, globalRequire, contextRequire