Try it like this idea based on escaping tips and ideas found on this site:
curl -X PUT https://example.com/_config/cors/origins -d "\*"
Another idea comes from this answer on a similar question about sending data via a POST request. First create a “data” file called “data.txt” that simply contains the *
. Then run this curl
command:
curl -X POST -d @data.txt https://example.com/_config/cors/origins
You could try that without the -X POST
which sets the request method like this:
curl -d @data.txt https://example.com/_config/cors/origins