diff options
author | GagaPete <gagapeterbs@gmail.com> | 2018-07-04 01:18:26 +0200 |
---|---|---|
committer | GagaPete <gagapeterbs@gmail.com> | 2018-07-04 01:56:44 +0200 |
commit | 8a4dccc4ce91e26ddeda7fcb1409cdd251b17779 (patch) | |
tree | 76281b7875f3917c0ba15796bae753d6f17e3d3d /scene/main/viewport.cpp | |
parent | 085483e88577ea91400a1ee46bc4321340824c51 (diff) |
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
Diffstat (limited to 'scene/main/viewport.cpp')
0 files changed, 0 insertions, 0 deletions