Skip to content

Commit

Permalink
attempt fix cors on get reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Apr 29, 2024
1 parent 6acc26a commit e5f15c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/js/extending.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const loadDiocesanCalendarData = () => {
url: RegionalDataURL,
method: 'GET',
dataType: 'json',
crossDomain: true,
data: { "key" : dioceseKey, "category": "diocesanCalendar" },
statusCode: {
404: (xhr, textStatus, errorThrown) => {
Expand Down Expand Up @@ -753,6 +754,7 @@ $(document).on('change', '.regionalNationalCalendarName', ev => {
url: RegionalDataURL,
method: 'GET',
dataType: 'json',
crossDomain: true,
data: { "key" : key, "category": category, "locale": LOCALE },
statusCode: {
404: (xhr, textStatus, errorThrown) => {
Expand Down Expand Up @@ -961,7 +963,7 @@ $(document).on('click', '#deleteDiocesanCalendarButton', ev => {
let deleteKey = { LitCal: $key, Diocese: $diocese, Nation: $nation, category: 'diocesanCalendar' };
$.ajax({
url: RegionalDataURL,
method: 'delete',
method: 'DELETE',
dataType: 'json',
contentType: 'application/json',
crossDomain: false,
Expand Down Expand Up @@ -1107,7 +1109,7 @@ $(document).on('click', '.serializeRegionalNationalData', ev => {
//console.log(JSON.stringify(finalObj));
$.ajax({
url: RegionalDataURL,
method: 'put',
method: 'PUT',
dataType: 'json',
contentType: 'application/json',
crossDomain: false,
Expand Down

0 comments on commit e5f15c5

Please sign in to comment.