I configured salesforce site(Build -> Site and created site to have public acess), then I add read/edit permission for account/contact for pulic/guest user and run GET request like: http://ao-dev-developer-edition.ap1.force.com/services/data/v29.0/sobjects/

but I amd getting the response like

<script id="tinyhippos-injected"/>
<message>HTTPS Required</message>

Is it possible to have puclic REST API access via salesforcde public Sites?


1 Answer 1


just add https instead of http https://ao-dev-developer-edition.ap1.force.com/services/data/v29.0/sobjects/ Thanks Nagarjuna

  • I am having in this case:<Errors><Error><errorCode>INVALID_SESSION_ID</errorCode><message>Authorization required</message></Error></Errors>
    – Natallia
    May 20, 2014 at 15:21
  • 2
    Did you add the apex class for the rest API to the avaialble classes for the Sites profile? For non-authenticated REST, it needs to be added to the apex classes for the Sites Profile May 20, 2014 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.