We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc6bc80 commit 6d6dfb1Copy full SHA for 6d6dfb1
js/run.js
@@ -92,7 +92,9 @@ var backends = {
92
},
93
tour: {
94
url: "https://tour.dlang.org/api/v1/run",
95
- contentType: "application/json; charset=utf-8",
+ // send json as text/plain to avoid an additional preflight OPTIONS request
96
+ // https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Preflighted_requests
97
+ contentType: "text/plain; charset=UTF-8",
98
requestTransform: function(data) {
99
return JSON.stringify({
100
source: data.code
0 commit comments