Commit 19f124c
Hexawolf
Send headers on OPTIONS request
Before making any requests with JavaScripts in browsers like Google Chrome, a OPTIONS request is being made to fetch CORS settings. Right now, this commit implements a simple patch to avoid 405 METHOD NO ALLOWED response while including all headers, similarily to HEAD. This can be optimized further, if needed/useful.1 parent 2f80288 commit 19f124c
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
340 | 344 | | |
341 | 345 | | |
342 | 346 | | |
| |||
347 | 351 | | |
348 | 352 | | |
349 | 353 | | |
350 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
351 | 359 | | |
352 | 360 | | |
353 | 361 | | |
| |||
0 commit comments