Author Message
hkalyoncu
Joined: Jul 10, 2018
Messages: 21
Offline
Hello

We are trying JavaScriptSDK v4.2.15 on Aura Platform version 8.
We have
SM version 8.0.1
AADS version 7.1.5
AAWG version 3.5.1
PresenceServices version 8.0.2 (which is also used for Multimedia Messaging)

I have configured CORS support for Breeze under Configuration>HTTP Security>HTTP CORS
I selected 'Allow Cross-origin Resource Sharing for all' option.

Sample Application succesfuly register with Messaging Server. But when I try to send a message, I am getting following error (You can see the attached screenshots):

Access to XMLHttpRequest at 'https://gbrz2-sm100.gamer.gov.tr/services/PresenceServices/rest/aem/bsid/685be1f8-d675-4d63-aef9-86b880f8fccb/resources/messages' from origin 'https://webrtc.gamer.gov.tr:8443' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

  • [Thumb - cors_error.png]
[Disk] Download
  • [Thumb - breeze_cors.png]
[Disk] Download
JMiddleton
Joined: Apr 1, 2019
Messages: 86
Offline
At this time, messaging with the PS is not supported with the JavaScript version of the CSDK.

Regarding the CORS error, you might be able to get around it by restarting the whole Breeze cluster. That said, there are other issues that you will run into that are currently being worked.
Go to:   
Mobile view