Go to All Forums

Getting CORS error from Vue.js


We are getting the following error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at www.site24x7.com/api/monitors/details_page/top_band/…48079003?authtoken=47c602d7411e0ac04243da91cced8cf9&period=2. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).


Does this need to be resolved from the server end?

Like (2) Reply
Replies (2)

Re: Getting CORS error from Vue.js

Hello Suman,
           Can you try the request like the below example?

url: 'https://www.site24x7.com/api/email_templates',
data: {authtoken: 'Authtoken'},
dataType: 'jsonp',
cache: true,
success: function(result) {
//Your Code goes here


Like (0) Reply

Re: Re: Getting CORS error from Vue.js

Did it work. 

I am facing the issue still

Like (0) Edit Delete Reply

Was this post helpful?