Go to All Forums

Getting CORS error from Vue.js

Hi,

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)

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

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


Regards,
Karthick

Like (0) Reply

Did it work. 

I am facing the issue still

Like (0) Reply

Was this post helpful?