Allow standard user to enable MacOS proxy when use Charles web proxy

New Contributor

when enable Charles web proxy, as standard user, user will meet the following the permission elevation issue by default


The follow post-install script can fix this problem

#!/bin/sh pathToScript=$0 pathToPackage=$1 targetLocation=$2 targetVolume=$3 cp /Applications/ /Library/PrivilegedHelperTools cp /Applications/ /Library/LaunchDaemons chown root:wheel /Library/LaunchDaemons/com.xk72.charles.ProxyHelper.plist /Library/PrivilegedHelperTools/com.xk72.charles.ProxyHelper chmod 744 /Library/LaunchDaemons/com.xk72.charles.ProxyHelper.plist launchctl load -Fw /Library/LaunchDaemons/com.xk72.charles.ProxyHelper.plist exit 0 ## Success exit 1 ## Failure

vendor package didn't include com.xk72.charles.ProxyHelper.plist. you need to install package into your local pc and run Charles one time to create, then you can find and copy it when you re-package it.


New Contributor III

Hi, After i created it and install it also allow admin, i still dont see any com.xk72.charles.ProxyHelper.plist. in the contents/Resource

Is there any way to workaround this?