|
528 | 528 | | CORS Check |
529 | 529 | |-------------------------------------------------------------------------- |
530 | 530 | | |
531 | | -| Set to true to enable Cross-Origin Resource Sharing (CORS). Useful if you |
532 | | -| are hosting your API on a different domain from the appolication that |
533 | | -| will access it through a browser. |
| 531 | +| Set to TRUE to enable Cross-Origin Resource Sharing (CORS). Useful if you |
| 532 | +| are hosting your API on a different domain from the application that |
| 533 | +| will access it through a browser |
534 | 534 | | |
535 | 535 | */ |
536 | | -$config['check_cors'] = false; |
| 536 | +$config['check_cors'] = FALSE; |
537 | 537 |
|
538 | 538 | /* |
539 | 539 | |-------------------------------------------------------------------------- |
540 | 540 | | CORS Allowable Headers |
541 | 541 | |-------------------------------------------------------------------------- |
542 | 542 | | |
543 | | -| If using CORS checks, set the allowable headers here. Add any custom headers you may |
544 | | -| be using in tyou application to the array |
| 543 | +| If using CORS checks, set the allowable headers here |
545 | 544 | | |
546 | 545 | */ |
547 | 546 | $config['allowed_cors_headers'] = [ |
|
557 | 556 | | CORS Allowable Methods |
558 | 557 | |-------------------------------------------------------------------------- |
559 | 558 | | |
560 | | -| If using CORS checks, you can set the methods you want to be allowed here. |
| 559 | +| If using CORS checks, you can set the methods you want to be allowed |
561 | 560 | | |
562 | 561 | */ |
563 | 562 | $config['allowed_cors_methods'] = [ |
|
574 | 573 | | CORS Allow Any Domain |
575 | 574 | |-------------------------------------------------------------------------- |
576 | 575 | | |
577 | | -| Set to true to enable Cross-Origin Resource Sharing (CORS) from any |
578 | | -| source domain |
| 576 | +| Set to TRUE to enable Cross-Origin Resource Sharing (CORS) from any |
| 577 | +| source domain |
579 | 578 | | |
580 | 579 | */ |
581 | | -$config['allow_any_cors_domain'] = false; |
| 580 | +$config['allow_any_cors_domain'] = FALSE; |
582 | 581 |
|
583 | 582 | /* |
584 | 583 | |-------------------------------------------------------------------------- |
585 | 584 | | CORS Allowable Domains |
586 | 585 | |-------------------------------------------------------------------------- |
587 | 586 | | |
588 | | -| Used if $config['check_cors'] is set to true and $config['allow_any_cors_domain'] |
589 | | -| is set to false. Set all the allowable domains within the array. |
| 587 | +| Used if $config['check_cors'] is set to TRUE and $config['allow_any_cors_domain'] |
| 588 | +| is set to FALSE. Set all the allowable domains within the array |
590 | 589 | | |
591 | 590 | | e.g. $config['allowed_origins'] = ['http://www.example.com', 'https://spa.example.com'] |
592 | 591 | | |
593 | 592 | */ |
594 | 593 | $config['allowed_cors_origins'] = []; |
595 | | - |
0 commit comments