Backendless Support
 
Waiting for user's response

API Call to backendless always using HTTP ( No HTTPS )

I'm using backendless.swc sdk for Flex/ActionScript. No matter how I setup SITE_URL with http or https, the api call to backendless is always using http. I verified that by opening the developer window in the browser and checking the network tab.

Leave a Comment

Comments (3)

photo
1

Ayman,

The SDK is open source, you're welcome to check out the source and see if you can identify where the problem is. We'd love the community to help out in making the SDK better.

Regards,

Mark

photo
1

Ok, found the issue and the suggested modifications are attached:

  • I added a new class named "SecureBackendlessChannel.as" in the messaging folder. This class extends the SecureAMFChannel rather than the AMFChannel
  • I modified BackendlessClient.as initChannel function to decide which channel - SecureBackendlessChannel(https) or BackendlessChannel(http) - to use based on the existence of "https" in the AMF_ENDPOINT.

photo
1

please create pull request on github so we will able to check changes