The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 802 errorHandler->error





Post Reply 
Ajax call to server issue
13-07-2022, 00:29
Post: #1
Ajax call to server issue
Hi Simon

I am trying to make an ajax call from my website to rescan minimserver.

The call is the following:

Quote:$.ajax({
type: "POST",
url: 'http://192.168.73.33:9790',
contentType: 'text/plain',
data: 'rescan',
dataType: 'text'
})
etc

However, I have the following classic error returned:

Cross-Origin Request Blocked
Cors Header 'Access-Control-Allow-Origin' missing

Is it my call which is wrong, or is it the header which is missing on your server side ?
Thx !
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Ajax call to server issue - lyapounov - 13-07-2022 00:29

Forum Jump:


User(s) browsing this thread: 1 Guest(s)