/    Sign up×
Community /Pin to ProfileBookmark

jQuery ajax working locally but not on server

Ajax request is not working on server.. and i hv also used xmlhttprequest .. it says cors error and even i resolved CROS error and again it shows CROB error read blocking in chrome dev tools

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@SempervivumMar 02.2020 — Is the file being requested by ajax located on the same server as the master file?
Copy linkTweet thisAlerts:
@ametwalyMar 12.2020 — Hi, you can config Ajax setup for CROS as

jQuery.ajaxSetup({

crossDomain: true,

xhrFields: {

withCredentials: true

}

});
×

Success!

Help @Joshuadaniel spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...