Dear all,
I'm following the documentation to send an HTTP request to a server. Here is the documentation:
func _make_post_request(url, data_to_send, use_ssl):
# Convert data to json string:
var query = JSON.print(data_to_send)
# Add 'Content-Type' header:
var headers = ["Content-Type: application/json"]
$HTTPRequest.request(url, headers, use_ssl, HTTPClient.METHOD_POST, query)
In my own code, I'm building the data to send with a Dictionary.
if OS.get_name() == "HTML5":
var headers = ["Content-Type: application/json"]
var data : Dictionary
data = { "score": score , "round" : round_number, "gameOver" : game_over }
request(server_path, headers, true, HTTPClient.METHOD_POST, JSON.print(data))
It works fine and the server receive the data. But doing that, I constantly have an error message in my browser console:

Could you explain me please what is wrong ?
Many thanks.