godot/core/io
GagaPete 139185e543 Fix CORS problems due to added headers on JS target
Before this change, missing User-Agent and Accept headers were automatically
added on all platforms. Setting the User-Agent header forces the browser to
do a CORS preflight (see 1) which fails if the HTTP endpoint is not
configured appropriate. It's not neccesary to set either header as the
browser sets them and so this commit disables that functionality on the JS
target.

1: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simple_requests
(cherry picked from commit 8a4dccc4ce)
2018-07-08 15:39:15 +02:00
..
compression.cpp
compression.h
config_file.cpp
config_file.h
file_access_buffered_fa.h
file_access_buffered.cpp
file_access_buffered.h
file_access_compressed.cpp
file_access_compressed.h
file_access_encrypted.cpp
file_access_encrypted.h
file_access_memory.cpp
file_access_memory.h
file_access_network.cpp
file_access_network.h
file_access_pack.cpp
file_access_pack.h
file_access_zip.cpp
file_access_zip.h
http_client.cpp Fix CORS problems due to added headers on JS target 2018-07-08 15:39:15 +02:00
http_client.h
image_loader.cpp
image_loader.h
ip_address.cpp
ip_address.h
ip.cpp
ip.h
json.cpp
json.h
logger.cpp
logger.h
marshalls.cpp
marshalls.h
networked_multiplayer_peer.cpp
networked_multiplayer_peer.h
packet_peer_udp.cpp
packet_peer_udp.h
packet_peer.cpp
packet_peer.h
pck_packer.cpp
pck_packer.h
resource_format_binary.cpp
resource_format_binary.h
resource_import.cpp
resource_import.h
resource_loader.cpp
resource_loader.h
resource_saver.cpp
resource_saver.h
SCsub
stream_peer_ssl.cpp
stream_peer_ssl.h
stream_peer_tcp.cpp
stream_peer_tcp.h
stream_peer.cpp
stream_peer.h
tcp_server.cpp
tcp_server.h
translation_loader_po.cpp
translation_loader_po.h
xml_parser.cpp
xml_parser.h
zip_io.h