| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,6 +72,10 @@ EM_JS( | |||
| 72 | 72 | // Should this only be set if using https? What about CORS via http? | |
| 73 | 73 | xhr.setRequestHeader("Authorization", authorization_header_js); | |
| 74 | 74 | } | |
| 75 | + if (!"{#{RUNTIME_TOKEN}#}".startsWith("{#{")) | ||
| 76 | + { | ||
| 77 | + xhr.setRequestHeader("x-runtime-token", "{#{RUNTIME_TOKEN}#}"); | ||
| 78 | + } | ||
| 75 | 79 | ||
| 76 | 80 | // Cache request info on JavaScript side so that it is available in subsequent calls | |
| 77 | 81 | // without having to pass it back and forth to/from C++. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments