sandbox

Setting PayPal return URL to localhost

左心房为你撑大大i 提交于 2019-12-05 03:22:38
I'm trying to integrate Paypal and I'm using sandbox in the process. I follow the step of the accepted answer in the below question. Setting PayPal return URL and making it auto return? But when I try to enter the URL, Paypal return the below error. We were unable to validate the URL you have entered. Please check your entry and try again. URL I'm trying to set is http://localhost:8888/paypal/success.php . Also I tried sending the return url with the form as below. <input type="hidden" name="return" value="http://localhost:8888/paypal/success.php"> Both methods does not work for me. Full Form

Getting path to users Library folder in OS X

。_饼干妹妹 提交于 2019-12-05 03:19:48
I need to open a NSSavePanel with the users Library folder as destination folder. Normally I would do this by entering ~/Library/ in [NSSavePanel beginSheetForDirectory] . This works fine as long as the application is not sandboxed. For sandboxed applications this will result in the NSSavePanel trying to access a folder inside the applications document "box". I cannot refer to /Users/username/Library/ as I do not know the users username at runtime. So how do I link to this path in cocoa? Not sure if this will work on a sandboxed application but this is how I do it right now. This will return

What is the entitlement to allow reading of file in a Mac OS X App? (deny file-read-data error)

人盡茶涼 提交于 2019-12-05 02:24:28
问题 I am making a Mac OS X App (sandboxed) which reads from an installed config file in /etc/myfolder. When I am trying to read the file using NSFileHandle, I am getting the following error in Console: sandboxd: ([3251]) MyApp(3251) deny file-read-data /private/etc/myfolder/myconfig.conf I have set the following entitlements in my Entitilements file, but I still get denied by sandboxd. com.apple.security.temporary-exception.files.home-relative-path.read-only com.apple.security.temporary-exception

html5 javascript- How to catch attempt to initiate navigation out of sandboxed iframe?

一笑奈何 提交于 2019-12-05 01:33:09
I have an sandboxed iframe that doesn't allow changing location: <iframe sandbox="allow-forms allow-popups allow-pointer-lock allow-same-origin allow-scripts" class="iframe visible" src="thesource.html" width="100%" scrolling="auto" frameborder="0"></iframe> If the iframe tries to unframe itself or change location I see a blank page because the browser stops the iframe's operation. This is the log from Chrome: Unsafe JavaScript attempt to initiate navigation for frame with URL ' http://example.com ' from frame with URL ' http://otherdomaian.com '. The frame attempting navigation of the top

Reading NSUserDefaults from helper app in the sandbox

我的未来我决定 提交于 2019-12-05 00:51:36
问题 I found some resources on reading the NSUserDefaults of another application. Objective-C NSUserDefaults caching prevents another app from accurately reading changes NSUserDefaults: Is it possible to get userDefaults from another app? Apparently, it's not possible. However the questions firstly relate to iOS, and secondly the two apps are completely different. I have a LaunchAtLogin helper app. But it does some other tasks too. Therefore, the helper app should run always, but only start the

How to build Sandboxed app without XCode?

笑着哭i 提交于 2019-12-05 00:43:54
问题 How to build Sandboxed app without XCode? I mean I'm using gcc Make to build my applications and own system for creating app bundles. But how can I enable the Sandbox without using XCode and option it's Sandbox option? There's tut about Sandbox, but I can't find anywhere informations about enabling Sandbox, but still no about SB without XCode.. Anyone can help? http://developer.apple.com/library/mac/#documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxQuickStart

puppeteer踩坑记录

ⅰ亾dé卋堺 提交于 2019-12-05 00:09:56
错误代码1: error while loading shared libraries: libXcomposite.so.1: cannot open shared 解决方案: 在项目Chrome所在的目录例如: /home/code/puppeteer/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/ 中运行 ldd chrome | grep not 依赖库 yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 -y 错误代码2: Running as root without --no-sandbox is not supported. 解决方案: 在puppeteer的launch中设置 puppeteer.launch({ args: ['--no-sandbox', '-

How an app to know what other apps have been installed in the device [duplicate]

我的未来我决定 提交于 2019-12-04 21:06:25
Possible Duplicate: Get list of installed apps on iphone Is there a way to know what other apps have been installed in an iPhone or other iOS devices?. I know that all ios apps are sandboxed so this may be impossible on a non-jailbroken device. but there is an App can do that.!not jailbroken (see image), How can it know all the apps I have installed? I am using iHasApp framework for my projects, and it works fine. You can get the code here . 来源: https://stackoverflow.com/questions/13798353/how-an-app-to-know-what-other-apps-have-been-installed-in-the-device

Is it possible to run native python code in chrome?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 19:16:11
问题 I was wondering if it is possible to run native python code in chrome instead of javascript. I have seen projects like pyjs or brython, but what they do is compile python to javascript. While those are great projects a problem with this approach is always that you cannot easily debug the original python code. Amongst other things I stumbled upon this thread, describing how to develop custom code for chromes-sandbox. But this would probably lead to implementing a python interpreter in the

Java Applet sandbox security, local vs external access

寵の児 提交于 2019-12-04 19:09:49
I had a bug in our (code signed) java applet "access denied (java.net.SocketPermission x.x.x.x:443 connect_resolve." We had an html "save" button that was calling (via javascript) an applet method to save a file, loaded into the applet, onto the webserver. After some extensive google research, I fixed it by wrapping our applet's save method code in doPrivileged(). Bug seems to be fixed, people are happy. I want to confirm that I completely understand the original circumstances and the solution I applied (backwards, I know, but turn around time didn't allow me to really research the issue).