Open Parveen-Mothsara opened 2 years ago
Hi All, I want to download all type of media which received on whatsapp, when i try downloadFileWithCredentials getting below error
Access to XMLHttpRequest at 'https://mmg.whatsapp.net/d/f/Amfl9fbT6s0ZbKBbQnIoUNY59HhvCeMetp_QYU35Egg5.enc' from origin 'https://web.whatsapp.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Please suggest.
How are you getting the URL to use in that function?
from
Hi All, I want to download all type of media which received on whatsapp, when i try downloadFileWithCredentials getting below error Access to XMLHttpRequest at 'https://mmg.whatsapp.net/d/f/Amfl9fbT6s0ZbKBbQnIoUNY59HhvCeMetp_QYU35Egg5.enc' from origin 'https://web.whatsapp.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute. Please suggest.
How are you getting the URL to use in that function?
From incoming message we get media url
Hi All, I want to download all type of media which received on whatsapp, when i try downloadFileWithCredentials getting below error
Access to XMLHttpRequest at 'https://mmg.whatsapp.net/d/f/Amfl9fbT6s0ZbKBbQnIoUNY59HhvCeMetp_QYU35Egg5.enc' from origin 'https://web.whatsapp.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Please suggest.