CORS problem

Published 2 weeks ago by Uzenkov

Hi everyone. I have this problem when i'm trying to send Viber message through VueJS. Could you tell me please how can I fix this?

Best Answer (As Selected By Uzenkov)
Uzenkov
CJJ
CJJ
2 weeks ago (1,460 XP)
Uzenkov

@CJJ Unfortunately, this does not work for me. The error still appears.

CJJ
CJJ
2 weeks ago (1,460 XP)

The error occurs when you try to make an ajax request to a domain that does not explicitly allow ajax requests from a foreign domain.

Is this error occurring when you make a request to your own API or to a 3rd party API? If it's a 3rd party API then they do not allow ajax calls, nothing you can do.

If it's your own API check for other errors such as syntax errors which can be mistranslated as a CORS error by the browser.

Uzenkov

@CJJ It's a 3rd party public Viber API. When i use Chrome CORS Extension it works fine, but without extension 'Access-Control-Allow' headers are not sent...

Uzenkov

Please sign in or create an account to participate in this conversation.