cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

No 'Access-Control-Allow-Origin' header is present on the requested resource

valnikol
Cisco Employee
Cisco Employee

Hi all,

I'm using unity server version: 10.5.2.10000-5.

I'm trying to implement javascript based client using CORS.

CORS setting is enabled on the server side and each client based request is working till the moment when i'm trying to get voicemail message attachment.

Browser request is following:

    1. Request URL:https://<host>/vmrest/messages/0:53df9a65-aa17-4370-8d33-d2b74cd4a5d5/attachments/0
    2. Server:Request Headers
    1. Accept:*/*
    2. Accept-Encoding:gzip, deflate, sdch
    3. Accept-Language:en-US,en;q=0.8,bg;q=0.6,hy;q=0.4
    4. Authorization:Basic <auth>
    5. Connection:keep-alive
    6. Host:<host>
    7. Origin:http://localhost
    8. Referer:http://localhost/
    9. User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36

Browser response Headers are following:

    1. Content-Disposition:inline; filename=VoiceMessage.wav; voice=Voice-Message
    2. Content-Length:36378
    3. Content-Type:audio/wav; name=voicemessage.wav
  1. As a result i'm receiving following error:
  2. XMLHttpRequest cannot load https://<host>/vmrest/messages/0:53df9a65-aa17-4370-8d33-d2b74cd4a5d5/attachments/0. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.

  3. Can you please help me how i can solve this issue? Is this a feature for security reasons or is a server configuration setting?
  4. Thanks,
  5. Valentin




Who Me Too'd this topic