Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 14:57, 18 April 2018
67 bytes added
,
14:57, 18 April 2018
no edit summary
Line 11:
Line 11:
var apiURL = 'https://wiki.gccollab.ca/api.php';
var apiURL = 'https://wiki.gccollab.ca/api.php';
+
var originURL = 'https://wiki.gccollab.ca';
$.ajax({
$.ajax({
Line 18:
Line 19:
meta: 'userinfo',
meta: 'userinfo',
format: 'json',
format: 'json',
−
origin:
'*'
+
origin:
originURL
},
},
xhrFields: {
xhrFields: {
Line 35:
Line 36:
meta: 'tokens',
meta: 'tokens',
format: 'json',
format: 'json',
−
origin:
'*'
+
origin:
originURL
},
},
xhrFields: {
xhrFields: {
Line 44:
Line 45:
console.log(data);
console.log(data);
$.ajax({
$.ajax({
−
url: apiURL + '?origin=
*
',
+
url: apiURL + '?origin='
+ originURL
,
method: 'POST',
method: 'POST',
data: {
data: {
Mark.wooff
Bureaucrats
,
Administrators
55
edits
Navigation menu
GC
wiki
Personal tools
English
Log in
Namespaces
Message
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main Page
Browse categories
Random page
Help
Actions/Tools
Special pages
Tools
Printable version
GCaccount
GCcollab
GCmessage