sandbox

Remove Sandboxing

随声附和 提交于 2020-01-13 08:04:08
问题 I have another question dealing with app sandboxing. So I need access to the users' home directory and at the same time the app should be able to shut down the Mac. This requires to not using sandboxing. My problem is that I don't know how to remove sandboxing and being able to submit the app to the Mac App Store. I think that the archives are sandboxed because I had turned it on once.. How to remove sandboxing from the archives properly? Thanks for your help! 回答1: If I understand what you

javascript - postMessage to sandboxed iframe, why is recipient window origin null?

。_饼干妹妹 提交于 2020-01-12 04:40:10
问题 2 postMessage calls in the test: 1 using an asterisk for targetOrigin, one using the same https url of both the parent and child documents. button 1: $('.iframed')[0].contentWindow.postMessage( messageData , '*' ); button 2: $('.iframed')[0].contentWindow.postMessage( messageData , 'https://myurl.net' ); the iframe element in parent html document, which points to child html file on same domain, in same directory: <iframe name="childFrame" class="iframed" src="child.html" sandbox="allow

How to properly enable the twig's sandbox extension in Symfony2?

本秂侑毒 提交于 2020-01-11 07:03:06
问题 In Symfony2, there is some Twig module disabled by default. One of them is the debug extension, that adds {% debug %} tag (useful on a development environment). To enable it, nothing really difficult, you add this service to your configuration : debug.twig.extension: class: Twig_Extensions_Extension_Debug tags: - { name: 'twig.extension' } But how to enable the {% sandbox %} tag? My issue is that the extension's constructor takes security policies : public function __construct(Twig_Sandbox

Error in Sandboxed App, When loading Helper (LoginItems), code signing issue

狂风中的少年 提交于 2020-01-11 04:52:25
问题 I'm trying to get out of this problem (I hope it's the last!) Briefly, I have one status bar app, which needs to start at login. I followed this tutorial http://blog.timschroeder.net/2012/07/03/the-launch-at-login-sandbox-project/ Everything it's working, but when it's time for testing the app in a real contest, outside xcode, I end up with this message in the console system.log: appleeventsd[52]: <rdar://problem/11489077> A sandboxed application with pid 1258, "xxxxx" checked in with

Access sidecar files in a Mac sandboxed app

被刻印的时光 ゝ 提交于 2020-01-10 03:25:17
问题 I need to access sidecar XMP files in a document-based photo editor application. The image files are the documents, and I need to access the sidecar XMP file when the user open and save an image document. Is it possible to access sidecar files (such as XMP) in a sandboxed document-based application? I understand that it's not possible by default, but what is the minimal temporary security exception that is needed to allow that? Is there a workaround for this without using temporary exception?

2047 Security sandbox violation errors while loading an external swf file into flex from server side

走远了吗. 提交于 2020-01-07 04:18:27
问题 This is my code and i want to place an external swf file for my flex application website. This is my code: var loader:Loader = new Loader(); var url:URLRequest = new URLRequest("http://www.my site.com"); loader.load(url); addChild(loader); If somebody have any help please it will be thankful. Atishay 回答1: I'm not entirely sure what you're asking or what your problem is. It is not possible for a SWF to access content from another domain unless that other domain gives permission. To do that you

javascript sandbox a module to prevent reference to Window

拜拜、爱过 提交于 2020-01-07 02:51:08
问题 I trying to create a sandbox module that can take a object and prevent that object's code reference to window. here is how it work in concept. var sand = function(window) { var module = { say: function() { console.log(window.location); } }; return module; } sand({}).say(); // window.location is undefine This doesn't work if the object is pass-in var $sand = (function(){ return function(obj, context) { return (function(obj, window) { window.module = {}; // doesn't work even copy object for (p

技术分享 | 如何使用 dbdeployer 快速搭建 MySQL 测试环境

倖福魔咒の 提交于 2020-01-06 23:21:22
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 一、工具介绍 dbdeployer 是一款十分强大的数据库测试环境部署工具,可实现一键部署不同架构、不同版本的数据库环境。 如:MySQL 主从复制、GTID 模式复制、MySQL 组复制(单主模式、多主模式等)完整的数据库类型支持及版本,可在安装完 dbdeployer 后使用 dbdeployer admin capabilities 命令进行查看,以下是当前已支持数据库及组件类型 Oracle MySQL Percona MySQL MariaDB TiDB MySQL NDB Cluster Percona XtraDB Cluster mysql-shell 本文主要介绍基于 dbdeployer 工具快速搭建 MySQL 测试环境以及 dbdeployer 的基础使用。完整的功能特性以及使用方式可查看 dbdeployer 文档手册,dbdeployer 的文档手册十分详细的介绍了该工具特性及各类使用方式,可查看文末的相关链接。 二、工具安装 本文以 MacOS 下部署为例,Linux 平台安装部署方式基本类似**(该工具不提供 Windows 版本)**,可访问 https://github.com/datacharmer/dbdeployer/releases 获取最新版 dbdeployer

Is `NSIsRelatedItemType` available on iOS?

这一生的挚爱 提交于 2020-01-06 04:45:27
问题 The App Sandbox Guide teaches us to use a key NSIsRelatedItemType in the Info.plist file to designate "Related Items", such as sidecar files, that the app should be able to access (given the proper use of NSFileCoordinator, which works great on macOS). However, the Information Property List Key Reference for CFBundleDocumentTypes does not have any documentation for NSIsRelatedItemType . Other keys, which are documented, are variously available on macOS and iOS. Is NSIsRelatedItemType

Using ExtJS 4 charts in ExtJS 3 application

北慕城南 提交于 2020-01-05 07:19:07
问题 I'm trying to add Ext4 charting to an existing Ext3 application, using ext-all-sandbox.js. I've got the basics working, but the code below gives axis.processView is not a function . It works fine without the axes defined (but with no axes obviously). It appears that the config objects are being used directly instead of being used to create actual axis instances. Any solutions to get this working? TestGraphPanel = Ext.extend(Ext.Panel, { initComponent: function() { TestGraphPanel.superclass