Change to actual path, so 301 redirect doesnt occur and browser wont change method
This commit is contained in:
@@ -604,7 +604,7 @@
|
||||
try {
|
||||
const code = codeEditor.getValue();
|
||||
|
||||
const response = await fetch('/codestorage', {
|
||||
const response = await fetch('/codestorage/default.php', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'text/plain'
|
||||
@@ -681,7 +681,7 @@
|
||||
|
||||
if (id) {
|
||||
try {
|
||||
const response = await fetch(`/codestorage?id=${id}`);
|
||||
const response = await fetch(`/codestorage/default.php?id=${id}`);
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`HTTP error! status: ${response.status}`);
|
||||
|
||||
Reference in New Issue
Block a user