sandbox

AS3 - Sending POST data to another domain without loading (Sandbox security)

做~自己de王妃 提交于 2019-12-13 01:10:01
问题 I need to send POST Data to a ASP script on a different domain name ( without loading data). var scriptRequest :URLRequest = new URLRequest( 'http://someExternalCart.com/cart.asp' ); scriptRequest.method = URLRequestMethod.POST; scriptRequest.data = scriptVars; It works with navigateToUrl, BUT I don't want to get redirected to that page, I only want to send the data. I have tried this: var ldr :URLLoader = new URLLoader(); ldr.load( scriptRequest ); But I am getting the sandbox security error

'xattr' command not working inside sandbox app

核能气质少年 提交于 2019-12-12 20:08:34
问题 We were working on an IDE for a long time and it has com.apple.security.app-sandbox mode. User can download requisite SDK from internet (out of the box) and use in our IDE for development. Prior to use those SDK file we many time noticed files have quarantine attributes (com.apple.quarantine). Such files were forbidden to use inside a sandbox app in El Capitan due to it's tighter restriction policies. To overcome such blocker we decides to run a bash script prior to use those SDK files inside

faking a filesystem / virtual filesystem

99封情书 提交于 2019-12-12 11:28:30
问题 I have a web service to which users upload python scripts that are run on a server. Those scripts process files that are on the server and I want them to be able to see only a certain hierarchy of the server's filesystem (best: a temporary folder on which I copy the files I want processed and the scripts). The server will ultimately be a linux based one but if a solution is also possible on Windows it would be nice to know how. What I though of is creating a user with restricted access to

Paypal - Return url page and variables

微笑、不失礼 提交于 2019-12-12 10:30:07
问题 Is it possible for me to get paypal post variables in return url. I want to show a response message in return url page depending on whether the user's transaction was completed/pending/failed one. I am testing with paypal sandbox account. Here is my code, <input type="hidden" name="item_name" value="Credit Purchase"> <input type="hidden" name="business" value="<?php echo paypal_business_id;?>"> <input type="hidden" name="rm" value="2"> <input type="hidden" name="cmd" value="_xclick"> <input

Edit system preferences from cocoa

安稳与你 提交于 2019-12-12 10:10:45
问题 Is there any way to edit system preferences programmatically using cocoa? Is there some framework required? I need to do this to change the global proxy settings. Also, my app is sandboxed. Is there any sample code on how to do this? Thanks for your help. 回答1: You're looking for the System Configuration framework, but it's not going to be easy. I don't think it's possible for a sandboxed app, because it requires root privilege. (Just like you have to authenticate as an admin to modify

How to call a function based on list entry?

[亡魂溺海] 提交于 2019-12-12 09:56:38
问题 I'm currently working on an experiment where I'm implementing an interpreter for an old in-game scripting language. It's a forth based language, so I figure it would be fairly easy to just have the instructions (once verified and santized) put into a big list. Once I've got the code in a list, I am trying to iterate through the entire program in a for loop that processes the instructions one at a time. Certain items, like strings, could be placed onto a variable that holds the current stack,

NSSavePanel and the Sandbox

可紊 提交于 2019-12-12 08:46:19
问题 I have some problems understanding the new Lion's Sandbox. I know that Lion includes a trusted daemon process called Powerbox whose job is to present and control open/save dialog boxes on behalf of sandboxed applications. Like the Code Signing And Application Sandboxing Guide says: Any time an application running inside a sandbox invokes an NSOpenPanel or NSSavePanel dialog, rather than showing the panels directly, AppKit automatically asks the Powerbox to present the dialog. From a developer

PayPal Sandbox transactions are not showing for seller

守給你的承諾、 提交于 2019-12-12 04:25:54
问题 I've used my live PayPal account to login to developer.paypal.com where I created 2 new accounts buyer@ (personal) and seller@ (business). I've implemented a PayPal plugin for a shop (CubeCart + PayPal Standard Payment Gateway plugin https://www.cubecart.com/extensions/payment-gateways/paypal-standard). When I complete an order (sandbox testing) I sign using buyer@ email and password and complete the order. I can then click to view account and it shows "payment to", "unclaimed" and the amount

How can you gain access to a web page's event listeners from a Google Chrome extension

会有一股神秘感。 提交于 2019-12-12 03:12:48
问题 I'm writing a Chrome extension to list out the source code for each event handler attached to an <a/> tag when you roll over it. Currently, I've printed out the href attribute - $(this).attr("href") - and this works fine. The source code is on github at http://github.com/grantyb/Google-Chrome-Link-URL-Extension. When I extend it to access event handlers, $(this).data("events") returns null. I'm certain that there is a click() handler for my <a/> tag, because when I output $("a").data("events"

Paypal DoDirectPayment API is not sending the notifications to Sandbox

↘锁芯ラ 提交于 2019-12-12 02:57:23
问题 I am using the DoDirectPayment and DoCapture paypal API(s) to authorize and capture the Credit Card Payments via Paypal. But the Problem is that I am not getting any notification in Sandbox when the payment is authorized and captured. I get the Notifications only when the PaymentAction = 'Sale' but the notifications are not coming when PaymentAction = 'Authorization'. 来源: https://stackoverflow.com/questions/25938320/paypal-dodirectpayment-api-is-not-sending-the-notifications-to-sandbox