CorsWhitelistEntry cors = new CorsWhitelistEntry();
cors.UrlPattern = 'sdfsdf.com';
insert cors;
Wherever I try the above (or any other DML operation), I get an error message:
DML operation ... not allowed on CorsWhitelistEntry
Any way to get past this? (I'm aware of REST/SOAP, but I'd really like to do this through APEX)
create
is allowed...