Changeset 3420349
- Timestamp:
- 12/15/2025 04:20:35 PM (2 months ago)
- Location:
- security-header-generator/trunk
- Files:
-
- 7 edited
-
languages/security-header-generator.pot (modified) (13 diffs)
-
readme.txt (modified) (3 diffs)
-
security-header-generator.php (modified) (1 diff)
-
work/common.php (modified) (3 diffs)
-
work/doc.php (modified) (18 diffs)
-
work/inc/kcp-cspgen-common.php (modified) (11 diffs)
-
work/inc/kcp-cspgen-settings.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
security-header-generator/trunk/languages/security-header-generator.pot
r3420274 r3420349 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2025-12-15 1 5:14+0000\n"9 "POT-Creation-Date: 2025-12-15 16:18+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 32 32 33 33 #: source/work/common.php:140 34 msgid "<h3>PHP Upgrade Notice</h3><p>To maintain the security standards of the <strong>Security Header Generator</strong> plugin this will be the final version that supports PHP versions lower than 8.1. Your site must be upgraded in order to update the plugin to future versions.</p><p>Please see here for up to date PHP version information: <a href='https://www.php.net/supported-versions.php' target='_blank'>https://www.php.net/supported-versions.php</a></p>" 34 msgid "PHP Upgrade Notice" 35 msgstr "" 36 37 #: source/work/common.php:141 38 msgid "To maintain the security standards of the Security Header Generator plugin this will be the final version that supports PHP versions lower than 8.2. Your site must be upgraded in order to update the plugin to future versions." 39 msgstr "" 40 41 #: source/work/common.php:142 42 msgid "Please see here for up to date PHP version information: https://www.php.net/supported-versions.php" 35 43 msgstr "" 36 44 … … 539 547 msgstr "" 540 548 541 #: source/work/inc/kcp-cspgen-common.php:58 542 msgid "Ambient Light Sensor" 543 msgstr "" 544 545 #: source/work/inc/kcp-cspgen-common.php:59 546 msgid "Controls whether the current document is allowed to gather information about the amount of light in the environment around the device through the AmbientLightSensor interface." 547 msgstr "" 548 549 #: source/work/inc/kcp-cspgen-common.php:63 549 #: source/work/inc/kcp-cspgen-common.php:65 550 550 msgid "Autoplay" 551 551 msgstr "" 552 552 553 #: source/work/inc/kcp-cspgen-common.php:6 4553 #: source/work/inc/kcp-cspgen-common.php:66 554 554 msgid "Controls whether the current document is allowed to autoplay media requested through the HTMLMediaElement interface. When this policy is disabled and there were no user gestures, the Promise returned by HTMLMediaElement.play() will reject with a DOMException. The autoplay attribute on <audio> and <video> elements will be ignored." 555 555 msgstr "" 556 556 557 #: source/work/inc/kcp-cspgen-common.php:68 557 #: source/work/inc/kcp-cspgen-common.php:70 558 msgid "Bluetooth" 559 msgstr "" 560 561 #: source/work/inc/kcp-cspgen-common.php:71 562 msgid "Controls whether the use of the Web Bluetooth API is allowed. When this policy is disabled, the methods of the Bluetooth object returned by Navigator.bluetooth will either return false or reject the returned Promise with a SecurityError DOMException." 563 msgstr "" 564 565 #: source/work/inc/kcp-cspgen-common.php:75 558 566 msgid "Camera" 559 567 msgstr "" 560 568 561 #: source/work/inc/kcp-cspgen-common.php: 69569 #: source/work/inc/kcp-cspgen-common.php:76 562 570 msgid "Controls whether the current document is allowed to use video input devices. When this policy is disabled, the Promise returned by getUserMedia() will reject with a NotAllowedError DOMException." 563 571 msgstr "" 564 572 565 #: source/work/inc/kcp-cspgen-common.php:73 573 #: source/work/inc/kcp-cspgen-common.php:80 574 msgid "Captured Surface Control" 575 msgstr "" 576 577 #: source/work/inc/kcp-cspgen-common.php:81 578 msgid "Controls whether the Captured Surface Control feature can be used to programmatically manipulate a display surface being captured (such as a browser tab or window), including scrolling and zooming." 579 msgstr "" 580 581 #: source/work/inc/kcp-cspgen-common.php:85 582 msgid "Compute Pressure" 583 msgstr "" 584 585 #: source/work/inc/kcp-cspgen-common.php:86 586 msgid "Controls access to the Compute Pressure API, which allows monitoring of compute pressure (CPU, GPU) on the device." 587 msgstr "" 588 589 #: source/work/inc/kcp-cspgen-common.php:90 590 msgid "Cross Origin Isolated" 591 msgstr "" 592 593 #: source/work/inc/kcp-cspgen-common.php:91 594 msgid "Controls whether the document is cross-origin isolated, enabling certain powerful features like SharedArrayBuffer and high-precision timers." 595 msgstr "" 596 597 #: source/work/inc/kcp-cspgen-common.php:95 598 msgid "Deferred Fetch" 599 msgstr "" 600 601 #: source/work/inc/kcp-cspgen-common.php:96 602 msgid "Controls whether the current document is allowed to use the fetchLater() API to defer fetch requests until after the document is unloaded." 603 msgstr "" 604 605 #: source/work/inc/kcp-cspgen-common.php:100 606 msgid "Deferred Fetch Minimal" 607 msgstr "" 608 609 #: source/work/inc/kcp-cspgen-common.php:101 610 msgid "Controls whether the current document is allowed to use the fetchLater() API with minimal quota restrictions." 611 msgstr "" 612 613 #: source/work/inc/kcp-cspgen-common.php:105 566 614 msgid "Display Capture" 567 615 msgstr "" 568 616 569 #: source/work/inc/kcp-cspgen-common.php: 74617 #: source/work/inc/kcp-cspgen-common.php:106 570 618 msgid "Controls whether or not the current document is permitted to use the getDisplayMedia() method to capture screen contents. When this policy is disabled, the promise returned by getDisplayMedia() will reject with a NotAllowedError if permission is not obtained to capture the display's contents." 571 619 msgstr "" 572 620 573 #: source/work/inc/kcp-cspgen-common.php: 78621 #: source/work/inc/kcp-cspgen-common.php:110 574 622 msgid "Encrypted Media" 575 623 msgstr "" 576 624 577 #: source/work/inc/kcp-cspgen-common.php: 79625 #: source/work/inc/kcp-cspgen-common.php:111 578 626 msgid "Controls whether the current document is allowed to use the Encrypted Media Extensions API (EME). When this policy is disabled, the Promise returned by Navigator.requestMediaKeySystemAccess() will reject with a DOMException." 579 627 msgstr "" 580 628 581 #: source/work/inc/kcp-cspgen-common.php: 83629 #: source/work/inc/kcp-cspgen-common.php:115 582 630 msgid "Full Screen" 583 631 msgstr "" 584 632 585 #: source/work/inc/kcp-cspgen-common.php: 84633 #: source/work/inc/kcp-cspgen-common.php:116 586 634 msgid "Controls whether the current document is allowed to use Element.requestFullScreen(). When this policy is disabled, the returned Promise rejects with a TypeError." 587 635 msgstr "" 588 636 589 #: source/work/inc/kcp-cspgen-common.php: 88637 #: source/work/inc/kcp-cspgen-common.php:120 590 638 msgid "Geo Location" 591 639 msgstr "" 592 640 593 #: source/work/inc/kcp-cspgen-common.php: 89641 #: source/work/inc/kcp-cspgen-common.php:121 594 642 msgid "Controls whether the current document is allowed to use the Geolocation Interface. When this policy is disabled, calls to getCurrentPosition() and watchPosition() will cause those functions' callbacks to be invoked with a GeolocationPositionError code of PERMISSION_DENIED" 595 643 msgstr "" 596 644 597 #: source/work/inc/kcp-cspgen-common.php: 93645 #: source/work/inc/kcp-cspgen-common.php:125 598 646 msgid "Gyroscope" 599 647 msgstr "" 600 648 601 #: source/work/inc/kcp-cspgen-common.php: 94649 #: source/work/inc/kcp-cspgen-common.php:126 602 650 msgid "Controls whether the current document is allowed to gather information about the orientation of the device through the Gyroscope interface" 603 651 msgstr "" 604 652 605 #: source/work/inc/kcp-cspgen-common.php: 99653 #: source/work/inc/kcp-cspgen-common.php:131 606 654 msgid "Human Interface Device" 607 655 msgstr "" 608 656 609 #: source/work/inc/kcp-cspgen-common.php:1 00657 #: source/work/inc/kcp-cspgen-common.php:132 610 658 msgid "Controls whether the current document is allowed to use the WebHID API to connect to uncommon or exotic human interface devices such as alternative keyboards or gamepads." 611 659 msgstr "" 612 660 613 #: source/work/inc/kcp-cspgen-common.php:1 04661 #: source/work/inc/kcp-cspgen-common.php:136 614 662 msgid "Identity Credentials Get" 615 663 msgstr "" 616 664 617 #: source/work/inc/kcp-cspgen-common.php:1 05665 #: source/work/inc/kcp-cspgen-common.php:137 618 666 msgid "Controls whether the current document is allowed to use the Federated Credential Management API (FedCM), and more specifically the navigator.credentials.get() method with an identity option." 619 667 msgstr "" 620 668 621 #: source/work/inc/kcp-cspgen-common.php:1 09669 #: source/work/inc/kcp-cspgen-common.php:141 622 670 msgid "Idle Detection" 623 671 msgstr "" 624 672 625 #: source/work/inc/kcp-cspgen-common.php:1 10673 #: source/work/inc/kcp-cspgen-common.php:142 626 674 msgid "Controls whether the current document is allowed to use the Idle Detection API to detect when users are interacting with their devices, for example to report \"available\"/\"away\" status in chat applications." 627 675 msgstr "" 628 676 629 #: source/work/inc/kcp-cspgen-common.php:115 630 msgid "Magnetometer" 631 msgstr "" 632 633 #: source/work/inc/kcp-cspgen-common.php:116 634 msgid "Controls whether the current document is allowed to gather information about the orientation of the device through the Magnetometer interface" 635 msgstr "" 636 637 #: source/work/inc/kcp-cspgen-common.php:120 677 #: source/work/inc/kcp-cspgen-common.php:154 638 678 msgid "Microphone" 639 679 msgstr "" 640 680 641 #: source/work/inc/kcp-cspgen-common.php:1 21681 #: source/work/inc/kcp-cspgen-common.php:155 642 682 msgid "Controls whether the current document is allowed to use audio input devices. When this policy is disabled, the Promise returned by MediaDevices.getUserMedia() will reject with a NotAllowedError." 643 683 msgstr "" 644 684 645 #: source/work/inc/kcp-cspgen-common.php:1 25685 #: source/work/inc/kcp-cspgen-common.php:159 646 686 msgid "MIDI" 647 687 msgstr "" 648 688 649 #: source/work/inc/kcp-cspgen-common.php:1 26689 #: source/work/inc/kcp-cspgen-common.php:160 650 690 msgid "Controls whether the current document is allowed to use the Web MIDI API. When this policy is disabled, the Promise returned by Navigator.requestMIDIAccess() will reject with a DOMException" 651 691 msgstr "" 652 692 653 #: source/work/inc/kcp-cspgen-common.php:130 693 #: source/work/inc/kcp-cspgen-common.php:164 694 msgid "OTP Credentials" 695 msgstr "" 696 697 #: source/work/inc/kcp-cspgen-common.php:165 698 msgid "Controls whether the current document is allowed to use the WebOTP API to request a one-time password (OTP) from a specially-formatted SMS message sent by the app's server." 699 msgstr "" 700 701 #: source/work/inc/kcp-cspgen-common.php:169 654 702 msgid "Payment" 655 703 msgstr "" 656 704 657 #: source/work/inc/kcp-cspgen-common.php:1 31705 #: source/work/inc/kcp-cspgen-common.php:170 658 706 msgid "Controls whether the current document is allowed to use the Payment Request API. When this policy is enabled, the PaymentRequest() constructor will throw a SecurityError DOMException" 659 707 msgstr "" 660 708 661 #: source/work/inc/kcp-cspgen-common.php:1 35709 #: source/work/inc/kcp-cspgen-common.php:174 662 710 msgid "Picture in Picture" 663 711 msgstr "" 664 712 665 #: source/work/inc/kcp-cspgen-common.php:1 36713 #: source/work/inc/kcp-cspgen-common.php:175 666 714 msgid "Controls whether the current document is allowed to play a video in a Picture-in-Picture mode via the corresponding API" 667 715 msgstr "" 668 716 669 #: source/work/inc/kcp-cspgen-common.php:1 40670 msgid "Publicke tCredentials Create"671 msgstr "" 672 673 #: source/work/inc/kcp-cspgen-common.php:1 41717 #: source/work/inc/kcp-cspgen-common.php:179 718 msgid "Publickey Credentials Create" 719 msgstr "" 720 721 #: source/work/inc/kcp-cspgen-common.php:180 674 722 msgid "Controls whether the current document is allowed to use the Web Authentication API to create new WebAuthn credentials, i.e., via navigator.credentials.create({publicKey})." 675 723 msgstr "" 676 724 677 #: source/work/inc/kcp-cspgen-common.php:1 45678 msgid "Publicke tCredentials Get"679 msgstr "" 680 681 #: source/work/inc/kcp-cspgen-common.php:1 46725 #: source/work/inc/kcp-cspgen-common.php:184 726 msgid "Publickey Credentials Get" 727 msgstr "" 728 729 #: source/work/inc/kcp-cspgen-common.php:185 682 730 msgid "Controls whether the current document is allowed to use the Web Authentication API to retrieve already stored public-key credentials, i.e. via navigator.credentials.get({publicKey: ..., ...})" 683 731 msgstr "" 684 732 685 #: source/work/inc/kcp-cspgen-common.php:1 50733 #: source/work/inc/kcp-cspgen-common.php:189 686 734 msgid "Screen Wake Lock" 687 735 msgstr "" 688 736 689 #: source/work/inc/kcp-cspgen-common.php:1 51737 #: source/work/inc/kcp-cspgen-common.php:190 690 738 msgid "Controls whether the current document is allowed to use Screen Wake Lock API to indicate that the device should not dim or turn off the screen." 691 739 msgstr "" 692 740 693 #: source/work/inc/kcp-cspgen-common.php:1 55741 #: source/work/inc/kcp-cspgen-common.php:194 694 742 msgid "Serial" 695 743 msgstr "" 696 744 697 #: source/work/inc/kcp-cspgen-common.php:1 56745 #: source/work/inc/kcp-cspgen-common.php:195 698 746 msgid "Controls whether the current document is allowed to use the Web Serial API to communicate with serial devices, either directly connected via a serial port, or via USB or Bluetooth devices emulating a serial port." 699 747 msgstr "" 700 748 701 #: source/work/inc/kcp-cspgen-common.php:1 60702 msgid "S ync XHR"703 msgstr "" 704 705 #: source/work/inc/kcp-cspgen-common.php: 161706 msgid "Controls whether the current document is allowed to make synchronous XMLHttpRequest requests"707 msgstr "" 708 709 #: source/work/inc/kcp-cspgen-common.php: 165749 #: source/work/inc/kcp-cspgen-common.php:199 750 msgid "Storage Access" 751 msgstr "" 752 753 #: source/work/inc/kcp-cspgen-common.php:200 754 msgid "Controls whether a document loaded in a third-party context (i.e. embedded in an <iframe>) is allowed to use the Storage Access API to request access to unpartitioned cookies." 755 msgstr "" 756 757 #: source/work/inc/kcp-cspgen-common.php:211 710 758 msgid "USB" 711 759 msgstr "" 712 760 713 #: source/work/inc/kcp-cspgen-common.php: 166761 #: source/work/inc/kcp-cspgen-common.php:212 714 762 msgid "Controls whether the current document is allowed to use the WebUSB API" 715 763 msgstr "" 716 764 717 #: source/work/inc/kcp-cspgen-common.php: 170765 #: source/work/inc/kcp-cspgen-common.php:216 718 766 msgid "Web Share" 719 767 msgstr "" 720 768 721 #: source/work/inc/kcp-cspgen-common.php: 171769 #: source/work/inc/kcp-cspgen-common.php:217 722 770 msgid "Controls whether the current document is allowed to use the Navigator.share() method of the Web Share API to share text, links, images, and other content to arbitrary destinations of the user's choice." 723 771 msgstr "" 724 772 725 #: source/work/inc/kcp-cspgen-common.php:175 773 #: source/work/inc/kcp-cspgen-common.php:221 774 msgid "Window Management" 775 msgstr "" 776 777 #: source/work/inc/kcp-cspgen-common.php:222 778 msgid "Controls whether the current document is allowed to use the Window Management API to manage windows on multiple displays." 779 msgstr "" 780 781 #: source/work/inc/kcp-cspgen-common.php:226 726 782 msgid "XR Spatial Tracking" 727 783 msgstr "" 728 784 729 #: source/work/inc/kcp-cspgen-common.php: 176785 #: source/work/inc/kcp-cspgen-common.php:227 730 786 msgid "Controls whether or not the current document is allowed to use the WebXR Device API to interact with a WebXR session" 731 787 msgstr "" 732 788 733 #: source/work/inc/kcp-cspgen-common.php:2 07789 #: source/work/inc/kcp-cspgen-common.php:258 734 790 msgid "Base URI" 735 791 msgstr "" 736 792 737 #: source/work/inc/kcp-cspgen-common.php:2 08793 #: source/work/inc/kcp-cspgen-common.php:259 738 794 msgid "Restricts the URLs which can be used in a document's <base> element. If this value is absent, then any URI is allowed." 739 795 msgstr "" 740 796 741 #: source/work/inc/kcp-cspgen-common.php:2 12797 #: source/work/inc/kcp-cspgen-common.php:263 742 798 msgid "Child Source" 743 799 msgstr "" 744 800 745 #: source/work/inc/kcp-cspgen-common.php:2 13801 #: source/work/inc/kcp-cspgen-common.php:264 746 802 msgid "Defines the valid sources for web workers and nested browsing contexts loaded using elements such as <frame> and <iframe>." 747 803 msgstr "" 748 804 749 #: source/work/inc/kcp-cspgen-common.php:2 17805 #: source/work/inc/kcp-cspgen-common.php:268 750 806 msgid "Connect/Ajax/XHR Source" 751 807 msgstr "" 752 808 753 #: source/work/inc/kcp-cspgen-common.php:2 18809 #: source/work/inc/kcp-cspgen-common.php:269 754 810 msgid "Restricts the URLs which can be loaded using script interfaces" 755 811 msgstr "" 756 812 757 #: source/work/inc/kcp-cspgen-common.php:2 22813 #: source/work/inc/kcp-cspgen-common.php:273 758 814 msgid "Default Source" 759 815 msgstr "" 760 816 761 #: source/work/inc/kcp-cspgen-common.php:2 23817 #: source/work/inc/kcp-cspgen-common.php:274 762 818 msgid "Serves as a fallback for the other fetch directives." 763 819 msgstr "" 764 820 765 #: source/work/inc/kcp-cspgen-common.php:2 27821 #: source/work/inc/kcp-cspgen-common.php:278 766 822 msgid "Font Source" 767 823 msgstr "" 768 824 769 #: source/work/inc/kcp-cspgen-common.php:2 28825 #: source/work/inc/kcp-cspgen-common.php:279 770 826 msgid "Specifies valid sources for fonts loaded using @font-face." 771 827 msgstr "" 772 828 773 #: source/work/inc/kcp-cspgen-common.php:2 32829 #: source/work/inc/kcp-cspgen-common.php:283 774 830 msgid "Form Action" 775 831 msgstr "" 776 832 777 #: source/work/inc/kcp-cspgen-common.php:2 33833 #: source/work/inc/kcp-cspgen-common.php:284 778 834 msgid "Restricts the URLs which can be used as the target of a form submissions from a given context." 779 835 msgstr "" 780 836 781 #: source/work/inc/kcp-cspgen-common.php:2 37837 #: source/work/inc/kcp-cspgen-common.php:288 782 838 msgid "Frame Source" 783 839 msgstr "" 784 840 785 #: source/work/inc/kcp-cspgen-common.php:2 38841 #: source/work/inc/kcp-cspgen-common.php:289 786 842 msgid "Specifies valid sources for nested browsing contexts loading using elements such as <frame> and <iframe>." 787 843 msgstr "" 788 844 789 #: source/work/inc/kcp-cspgen-common.php:2 42845 #: source/work/inc/kcp-cspgen-common.php:293 790 846 msgid "Frame Ancestors" 791 847 msgstr "" 792 848 793 #: source/work/inc/kcp-cspgen-common.php:2 43849 #: source/work/inc/kcp-cspgen-common.php:294 794 850 msgid "Specifies valid parents that may embed a page using <frame>, <iframe>, <object>, <embed>, or <applet>." 795 851 msgstr "" 796 852 797 #: source/work/inc/kcp-cspgen-common.php:2 47853 #: source/work/inc/kcp-cspgen-common.php:298 798 854 msgid "Image Source" 799 855 msgstr "" 800 856 801 #: source/work/inc/kcp-cspgen-common.php:2 48857 #: source/work/inc/kcp-cspgen-common.php:299 802 858 msgid "Specifies valid sources of images and favicons." 803 859 msgstr "" 804 860 805 #: source/work/inc/kcp-cspgen-common.php: 252861 #: source/work/inc/kcp-cspgen-common.php:303 806 862 msgid "Manifest Source" 807 863 msgstr "" 808 864 809 #: source/work/inc/kcp-cspgen-common.php: 253865 #: source/work/inc/kcp-cspgen-common.php:304 810 866 msgid "Specifies valid sources of application manifest files." 811 867 msgstr "" 812 868 813 #: source/work/inc/kcp-cspgen-common.php: 257869 #: source/work/inc/kcp-cspgen-common.php:308 814 870 msgid "Media Source" 815 871 msgstr "" 816 872 817 #: source/work/inc/kcp-cspgen-common.php: 258873 #: source/work/inc/kcp-cspgen-common.php:309 818 874 msgid "Specifies valid sources for loading media using the <audio> , <video> and <track> elements." 819 875 msgstr "" 820 876 821 #: source/work/inc/kcp-cspgen-common.php: 262877 #: source/work/inc/kcp-cspgen-common.php:313 822 878 msgid "Object Source" 823 879 msgstr "" 824 880 825 #: source/work/inc/kcp-cspgen-common.php: 263881 #: source/work/inc/kcp-cspgen-common.php:314 826 882 msgid "Specifies valid sources for the <object>, <embed>, and <applet> elements." 827 883 msgstr "" 828 884 829 #: source/work/inc/kcp-cspgen-common.php: 267885 #: source/work/inc/kcp-cspgen-common.php:318 830 886 msgid "Sandbox" 831 887 msgstr "" 832 888 833 #: source/work/inc/kcp-cspgen-common.php: 268889 #: source/work/inc/kcp-cspgen-common.php:319 834 890 msgid "Applies restrictions to a page's actions including preventing popups, preventing the execution of plugins and scripts, and enforcing a same-origin policy. Please see here for more information: <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox\" target=\"_blank\">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox</a>" 835 891 msgstr "" 836 892 837 #: source/work/inc/kcp-cspgen-common.php: 272893 #: source/work/inc/kcp-cspgen-common.php:323 838 894 msgid "Script Source" 839 895 msgstr "" 840 896 841 #: source/work/inc/kcp-cspgen-common.php: 273897 #: source/work/inc/kcp-cspgen-common.php:324 842 898 msgid "Specifies valid sources for JavaScript." 843 899 msgstr "" 844 900 845 #: source/work/inc/kcp-cspgen-common.php: 277901 #: source/work/inc/kcp-cspgen-common.php:328 846 902 msgid "Script Source Elements" 847 903 msgstr "" 848 904 849 #: source/work/inc/kcp-cspgen-common.php: 278905 #: source/work/inc/kcp-cspgen-common.php:329 850 906 msgid "Specifies valid sources for JavaScript <script> elements." 851 907 msgstr "" 852 908 853 #: source/work/inc/kcp-cspgen-common.php: 282909 #: source/work/inc/kcp-cspgen-common.php:333 854 910 msgid "Script Source Attributes" 855 911 msgstr "" 856 912 857 #: source/work/inc/kcp-cspgen-common.php: 283913 #: source/work/inc/kcp-cspgen-common.php:334 858 914 msgid "Specifies valid sources for JavaScript inline event handlers." 859 915 msgstr "" 860 916 861 #: source/work/inc/kcp-cspgen-common.php: 287917 #: source/work/inc/kcp-cspgen-common.php:338 862 918 msgid "Style Source" 863 919 msgstr "" 864 920 865 #: source/work/inc/kcp-cspgen-common.php: 288921 #: source/work/inc/kcp-cspgen-common.php:339 866 922 msgid "Specifies valid sources for stylesheets." 867 923 msgstr "" 868 924 869 #: source/work/inc/kcp-cspgen-common.php: 292925 #: source/work/inc/kcp-cspgen-common.php:343 870 926 msgid "Style Source Elements" 871 927 msgstr "" 872 928 873 #: source/work/inc/kcp-cspgen-common.php: 293929 #: source/work/inc/kcp-cspgen-common.php:344 874 930 msgid "Specifies valid sources for stylesheets <style> elements and <link> elements with rel=\"stylesheet\"." 875 931 msgstr "" 876 932 877 #: source/work/inc/kcp-cspgen-common.php: 297933 #: source/work/inc/kcp-cspgen-common.php:348 878 934 msgid "Style Source Attributes" 879 935 msgstr "" 880 936 881 #: source/work/inc/kcp-cspgen-common.php: 298937 #: source/work/inc/kcp-cspgen-common.php:349 882 938 msgid "Specifies valid sources for inline styles applied to individual DOM elements." 883 939 msgstr "" 884 940 885 #: source/work/inc/kcp-cspgen-common.php:3 02941 #: source/work/inc/kcp-cspgen-common.php:353 886 942 msgid "Worker Source" 887 943 msgstr "" 888 944 889 #: source/work/inc/kcp-cspgen-common.php:3 03945 #: source/work/inc/kcp-cspgen-common.php:354 890 946 msgid "Specifies valid sources for Worker, SharedWorker, or ServiceWorker scripts." 891 947 msgstr "" … … 908 964 909 965 #: source/work/inc/kcp-cspgen-settings.php:135, source/work/inc/kcp-cspgen-settings.php:154 910 msgid "<p> <strong>NOTE</strong><br />Make sure to check your web browsers <strong>Development Tools</strong>once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.</p>"966 msgid "<p>NOTE<br />Make sure to check your web browsers Development Tools once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.</p>" 911 967 msgstr "" 912 968 … … 916 972 917 973 #: source/work/inc/kcp-cspgen-settings.php:144 918 msgid "<p> <strong>NOTE</strong><br />Make sure to check your web browsers <strong>Development Tools</strong> once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.<br /><br /><strong>Suggested:</strong><br />Add your domains to the necessary attribute prior to adding the external resource...</p>"974 msgid "<p>NOTE<br />Make sure to check your web browsers Development Tools once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.<br /><br />Suggested:<br />Add your domains to the necessary attribute prior to adding the external resource...</p>" 919 975 msgstr "" 920 976 … … 944 1000 945 1001 #: source/work/inc/kcp-cspgen-settings.php:219 946 msgid "This will attempt to apply all headers to the REST API of your site.<br /> <strong>NOTE:</strong>Due to the default nature of the REST API, the headers will also be applied to the admin areas of the website. You will need to check for breakages after applying."1002 msgid "This will attempt to apply all headers to the REST API of your site.<br />NOTE: Due to the default nature of the REST API, the headers will also be applied to the admin areas of the website. You will need to check for breakages after applying." 947 1003 msgstr "" 948 1004 … … 964 1020 965 1021 #: source/work/inc/kcp-cspgen-settings.php:247 966 msgid " <strong>Include Subdomains?</strong>"1022 msgid "Include Subdomains?" 967 1023 msgstr "" 968 1024 … … 972 1028 973 1029 #: source/work/inc/kcp-cspgen-settings.php:257 974 msgid " <strong>Preload?</strong>"1030 msgid "Preload?" 975 1031 msgstr "" 976 1032 … … 1016 1072 1017 1073 #: source/work/inc/kcp-cspgen-settings.php:310 1018 msgid "Select the methods you wish to allow.<br /> <strong>NOTE:</strong> Most public websites require at least GET to be viewable online.<br /><strong>NOTE 2:</strong>This will block unselected methods."1074 msgid "Select the methods you wish to allow.<br />NOTE: Most public websites require at least GET to be viewable online.<br />NOTE 2: This will block unselected methods." 1019 1075 msgstr "" 1020 1076 … … 1080 1136 1081 1137 #: source/work/inc/kcp-cspgen-settings.php:351 1082 msgid "Set the allowed access origin here. Can either be an asterisk: <code>*</code>, or a FQDN URL: <code>https://example.com</code><br /> <strong>NOTE: </strong>If nothing is put in here, we will default to <code>*</code>"1138 msgid "Set the allowed access origin here. Can either be an asterisk: <code>*</code>, or a FQDN URL: <code>https://example.com</code><br />NOTE: If nothing is put in here, we will default to <code>*</code>" 1083 1139 msgstr "" 1084 1140 … … 1224 1280 1225 1281 #: source/work/inc/kcp-cspgen-settings.php:552 1226 msgid " <strong>Basic Auth Username</strong>"1282 msgid "Basic Auth Username" 1227 1283 msgstr "" 1228 1284 … … 1232 1288 1233 1289 #: source/work/inc/kcp-cspgen-settings.php:564 1234 msgid " <strong>Basic Auth Password</strong>"1290 msgid "Basic Auth Password" 1235 1291 msgstr "" 1236 1292 … … 1312 1368 1313 1369 #: source/work/inc/kcp-cspgen-settings.php:701 1314 msgid "Setting this will add another header to configure browser and frame permissions. See here for more information: <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy\" target=\"_blank\">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy</a><br /><br /> <strong>NOTE: </strong>Some of these features are not implemented for all browsers, and/or could be experimental. Please read through that information and decide what features you need, and what audiences you need to apply to."1370 msgid "Setting this will add another header to configure browser and frame permissions. See here for more information: <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy\" target=\"_blank\">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy</a><br /><br />NOTE: Some of these features are not implemented for all browsers, and/or could be experimental. Please read through that information and decide what features you need, and what audiences you need to apply to." 1315 1371 msgstr "" 1316 1372 -
security-header-generator/trunk/readme.txt
r3420274 r3420349 6 6 Tested up to: 7.0 7 7 Requires PHP: 8.2 8 Stable tag: 5.3. 678 Stable tag: 5.3.77 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 69 69 == Changelog == 70 70 71 = 5.3.77 = 72 * Update: Fixes for "plugin checker" 73 * Remove: Permissions-Policy: ambient-light-sensor 74 * Not compatible with any browsers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy/ambient-light-sensor 75 * Remove: Permissions-Policy: magnetometer 76 * Not compatible with any browsers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy/magnetometer 77 * Remove: Permissions-Policy: sync-xhr 78 * Completely removed from spec 79 * Add: The following list of Permissions-Policy attributes: 80 * bluetooth 81 * captured-surface-control 82 * compute-pressure 83 * cross-origin-isolated 84 * deferred-fetch 85 * deferred-fetch-minimal 86 * otp-credentials 87 * storage-access 88 * window-management 89 71 90 = 5.3.67 = 72 91 * Verify: Core 7.0 … … 74 93 * Update: Defaults for WordPress 75 94 * JS controller was causing issues with fields no populating properly 76 * Update: Documentation77 95 * Remove: Enforce Certificate Transparency 78 96 * Deprecated: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Expect-CT -
security-header-generator/trunk/security-header-generator.php
r3420274 r3420349 12 12 Requires at least: 6.0.9 13 13 Requires PHP: 8.2 14 Version: 5.3.67 15 Network: false 14 Version: 5.3.77 16 15 Text Domain: security-header-generator 17 16 License: GPLv3 18 17 License URI: https://www.gnu.org/licenses/gpl-3.0.html 19 Update URI: https://wordpress.org/plugins/security-header-generator/20 18 */ 21 19 -
security-header-generator/trunk/work/common.php
r3303531 r3420349 21 21 22 22 // it is, so throw and error message and exit 23 wp_die( __( '<h1>PHP To Low</h1><p>Due to the nature of this plugin, it cannot be run on lower versions of PHP.</p><p>Please contact your hosting provider to upgrade your site to at least version 8.1.</p>', 'security-header-generator' ),24 __( 'Cannot Activate: PHP To Low', 'security-header-generator' ),23 wp_die( esc_html_e( '<h1>PHP To Low</h1><p>Due to the nature of this plugin, it cannot be run on lower versions of PHP.</p><p>Please contact your hosting provider to upgrade your site to at least version 8.1.</p>', 'security-header-generator' ), 24 esc_html_e( 'Cannot Activate: PHP To Low', 'security-header-generator' ), 25 25 array( 26 26 'back_link' => true, … … 34 34 // we did, so... throw an error message and exit 35 35 wp_die( 36 __( '<h1>Cannot Network Activate</h1><p>Due to the nature of this plugin, it cannot be network activated.</p><p>Please go back, and activate inside your subsites.</p>', 'security-header-generator' ),37 __( 'Cannot Network Activate', 'security-header-generator' ),36 esc_html_e( '<h1>Cannot Network Activate</h1><p>Due to the nature of this plugin, it cannot be network activated.</p><p>Please go back, and activate inside your subsites.</p>', 'security-header-generator' ), 37 esc_html_e( 'Cannot Network Activate', 'security-header-generator' ), 38 38 array( 39 39 'back_link' => true, … … 132 132 add_action( 'admin_notices', function( ) : void { 133 133 134 // if the site is under PHP 8. 1135 if ( version_compare( PHP_VERSION, '8. 1', '<=' ) ) {134 // if the site is under PHP 8.2 135 if ( version_compare( PHP_VERSION, '8.2', '<=' ) ) { 136 136 137 137 // show this notice 138 138 ?> 139 139 <div class="notice notice-info is-dismissible"> 140 <p><?php _e( "<h3>PHP Upgrade Notice</h3><p>To maintain the security standards of the <strong>Security Header Generator</strong> plugin this will be the final version that supports PHP versions lower than 8.1. Your site must be upgraded in order to update the plugin to future versions.</p><p>Please see here for up to date PHP version information: <a href='https://www.php.net/supported-versions.php' target='_blank'>https://www.php.net/supported-versions.php</a></p>", 'security-header-generator' ); ?></p> 140 <h3><?php esc_html_e( "PHP Upgrade Notice", 'security-header-generator' ); ?></h3> 141 <p><?php esc_html_e( "To maintain the security standards of the Security Header Generator plugin this will be the final version that supports PHP versions lower than 8.2. Your site must be upgraded in order to update the plugin to future versions.", 'security-header-generator' ); ?> 142 <p><?php esc_html_e( "Please see here for up to date PHP version information: https://www.php.net/supported-versions.php", 'security-header-generator' ); ?></p> 141 143 </div> 142 144 <?php -
security-header-generator/trunk/work/doc.php
r3420274 r3420349 23 23 } 24 24 </style> 25 <p><?php _e( 'This plugin generates the proper security HTTP response headers and generates a Content Security Policy if configured to do so', 'security-header-generator' ); ?>.</p>26 27 <h3 id="install"><?php _e( 'Install', 'security-header-generator' ); ?></h3>25 <p><?php esc_html_e( 'This plugin generates the proper security HTTP response headers and generates a Content Security Policy if configured to do so', 'security-header-generator' ); ?>.</p> 26 27 <h3 id="install"><?php esc_html_e( 'Install', 'security-header-generator' ); ?></h3> 28 28 <ul class="the_list"> 29 <li><?php _e( 'Download the plugin, unzip it, and upload to your sites', 'security-header-generator' ); ?> <code>/wp-content/plugins/</code> <?php_e( 'directory', 'security-header-generator' ); ?>29 <li><?php esc_html_e( 'Download the plugin, unzip it, and upload to your sites', 'security-header-generator' ); ?> <code>/wp-content/plugins/</code> <?php esc_html_e( 'directory', 'security-header-generator' ); ?> 30 30 <ul class="the_list"> 31 <li><?php _e( 'You can also upload it directly to your Plugins admin', 'security-header-generator' ); ?></li>31 <li><?php esc_html_e( 'You can also upload it directly to your Plugins admin', 'security-header-generator' ); ?></li> 32 32 </ul> 33 33 </li> 34 <li><?php _e( 'Activate the plugin through the "Plugins" menu in WordPress', 'security-header-generator' ); ?></li>34 <li><?php esc_html_e( 'Activate the plugin through the "Plugins" menu in WordPress', 'security-header-generator' ); ?></li> 35 35 </ul> 36 36 37 <h3 id="usage"><?php _e( 'Usage', 'security-header-generator' ); ?></h3>38 <p><?php _e( 'Head over to the admin section of your site and click "Security Headers", configure how you need it to be configured. The configured headers will automatically be implemented.', 'security-header-generator' ); ?></p>39 40 <h3 id="gotcha"><?php _e( 'IMPORTANT: Hosting Environment Considerations', 'security-header-generator' ); ?></h3>41 <p><?php _e( 'If your hosting environment is already setting these headers, most likely your settings in this plugin will <strong>NOT</strong> override the values you specify', 'security-header-generator' ); ?>.</p>42 <p><?php _e( 'If this is the case, please check with your hosting company or review your server configuration for headers being set. The plugin will do its best to override them, but in some environments this is just not possible', 'security-header-generator' ); ?>.</p>43 44 <h3 id="settings"><?php _e( 'Settings Overview', 'security-header-generator' ); ?></h3>37 <h3 id="usage"><?php esc_html_e( 'Usage', 'security-header-generator' ); ?></h3> 38 <p><?php esc_html_e( 'Head over to the admin section of your site and click "Security Headers", configure how you need it to be configured. The configured headers will automatically be implemented.', 'security-header-generator' ); ?></p> 39 40 <h3 id="gotcha"><?php esc_html_e( 'IMPORTANT: Hosting Environment Considerations', 'security-header-generator' ); ?></h3> 41 <p><?php esc_html_e( 'If your hosting environment is already setting these headers, most likely your settings in this plugin will <strong>NOT</strong> override the values you specify', 'security-header-generator' ); ?>.</p> 42 <p><?php esc_html_e( 'If this is the case, please check with your hosting company or review your server configuration for headers being set. The plugin will do its best to override them, but in some environments this is just not possible', 'security-header-generator' ); ?>.</p> 43 44 <h3 id="settings"><?php esc_html_e( 'Settings Overview', 'security-header-generator' ); ?></h3> 45 45 46 46 <ul class="the_list"> 47 <li><h3><?php _e( 'Standard Security Headers Tab', 'security-header-generator' ); ?></h3>48 <p><?php _e( 'This tab controls the basic security headers that protect your website from common attacks and vulnerabilities.', 'security-header-generator' ); ?></p>47 <li><h3><?php esc_html_e( 'Standard Security Headers Tab', 'security-header-generator' ); ?></h3> 48 <p><?php esc_html_e( 'This tab controls the basic security headers that protect your website from common attacks and vulnerabilities.', 'security-header-generator' ); ?></p> 49 49 <ul class="the_list"> 50 50 <li> 51 <strong><?php _e( 'Apply to Admin', 'security-header-generator' ); ?></strong>52 <ul class="the_list"> 53 <li><?php _e( 'Choose whether to apply these security headers to the WordPress admin area in addition to your public-facing website. Enabling this provides protection for your admin panel as well.', 'security-header-generator' ); ?></li>54 </ul> 55 </li> 56 <li> 57 <strong><?php _e( 'Apply to the REST API', 'security-header-generator' ); ?></strong>58 <ul class="the_list"> 59 <li><?php _e( 'Choose whether to apply these headers to your WordPress REST API. <strong>NOTE:</strong> Because of how WordPress works, enabling this will also apply headers to the admin areas. Test thoroughly after enabling to ensure nothing breaks.', 'security-header-generator' ); ?></li>60 </ul> 61 </li> 62 <li> 63 <strong><?php _e( 'Strict Transport Security', 'security-header-generator' ); ?></strong>64 <ul class="the_list"> 65 <li> 66 <?php _e( 'This forces browsers to only access your site over HTTPS (secure connections), preventing downgrade attacks where someone might try to force an insecure HTTP connection.', 'security-header-generator' ); ?>67 <ul class="the_list"> 68 <li> 69 <?php _e( 'Learn more:', 'security-header-generator' ); ?>51 <strong><?php esc_html_e( 'Apply to Admin', 'security-header-generator' ); ?></strong> 52 <ul class="the_list"> 53 <li><?php esc_html_e( 'Choose whether to apply these security headers to the WordPress admin area in addition to your public-facing website. Enabling this provides protection for your admin panel as well.', 'security-header-generator' ); ?></li> 54 </ul> 55 </li> 56 <li> 57 <strong><?php esc_html_e( 'Apply to the REST API', 'security-header-generator' ); ?></strong> 58 <ul class="the_list"> 59 <li><?php esc_html_e( 'Choose whether to apply these headers to your WordPress REST API. <strong>NOTE:</strong> Because of how WordPress works, enabling this will also apply headers to the admin areas. Test thoroughly after enabling to ensure nothing breaks.', 'security-header-generator' ); ?></li> 60 </ul> 61 </li> 62 <li> 63 <strong><?php esc_html_e( 'Strict Transport Security', 'security-header-generator' ); ?></strong> 64 <ul class="the_list"> 65 <li> 66 <?php esc_html_e( 'This forces browsers to only access your site over HTTPS (secure connections), preventing downgrade attacks where someone might try to force an insecure HTTP connection.', 'security-header-generator' ); ?> 67 <ul class="the_list"> 68 <li> 69 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 70 70 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security</a> 71 71 </li> … … 73 73 </li> 74 74 <li> 75 <?php _e( 'Configuration options:', 'security-header-generator' ); ?>76 <ul class="the_list"> 77 <li><strong><?php _e( 'Cache Age:', 'security-header-generator' ); ?></strong> <?php_e( 'How long (in seconds) browsers should remember to only use HTTPS. Default is 31536000 (1 year).', 'security-header-generator' ); ?></li>78 <li><strong><?php _e( 'Include Subdomains:', 'security-header-generator' ); ?></strong> <?php_e( 'Apply this rule to all subdomains (like blog.yoursite.com, shop.yoursite.com). Only enable if ALL your subdomains use HTTPS.', 'security-header-generator' ); ?></li>79 <li><strong><?php _e( 'Preload:', 'security-header-generator' ); ?></strong> <?php_e( 'Submit your site to browsers\' preload lists for maximum security. If enabled, change Cache Age to 63072000 (2 years). Learn more:', 'security-header-generator' ); ?> <a href="https://hstspreload.org/" target="_blank">https://hstspreload.org/</a></li>80 </ul> 81 </li> 82 </ul> 83 </li> 84 <li> 85 <strong><?php _e( 'Frame Sources', 'security-header-generator' ); ?></strong>86 <ul class="the_list"> 87 <li> 88 <?php _e( 'Controls whether other websites can display your site in an iframe or frame. This prevents "clickjacking" attacks where attackers trick users by embedding your site invisibly.', 'security-header-generator' ); ?>89 <ul class="the_list"> 90 <li> 91 <?php _e( 'Learn more:', 'security-header-generator' ); ?>75 <?php esc_html_e( 'Configuration options:', 'security-header-generator' ); ?> 76 <ul class="the_list"> 77 <li><strong><?php esc_html_e( 'Cache Age:', 'security-header-generator' ); ?></strong> <?php esc_html_e( 'How long (in seconds) browsers should remember to only use HTTPS. Default is 31536000 (1 year).', 'security-header-generator' ); ?></li> 78 <li><strong><?php esc_html_e( 'Include Subdomains:', 'security-header-generator' ); ?></strong> <?php esc_html_e( 'Apply this rule to all subdomains (like blog.yoursite.com, shop.yoursite.com). Only enable if ALL your subdomains use HTTPS.', 'security-header-generator' ); ?></li> 79 <li><strong><?php esc_html_e( 'Preload:', 'security-header-generator' ); ?></strong> <?php esc_html_e( 'Submit your site to browsers\' preload lists for maximum security. If enabled, change Cache Age to 63072000 (2 years). Learn more:', 'security-header-generator' ); ?> <a href="https://hstspreload.org/" target="_blank">https://hstspreload.org/</a></li> 80 </ul> 81 </li> 82 </ul> 83 </li> 84 <li> 85 <strong><?php esc_html_e( 'Frame Sources', 'security-header-generator' ); ?></strong> 86 <ul class="the_list"> 87 <li> 88 <?php esc_html_e( 'Controls whether other websites can display your site in an iframe or frame. This prevents "clickjacking" attacks where attackers trick users by embedding your site invisibly.', 'security-header-generator' ); ?> 89 <ul class="the_list"> 90 <li> 91 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 92 92 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options</a> 93 93 </li> … … 95 95 </li> 96 96 <li> 97 <?php _e( 'Options:', 'security-header-generator' ); ?>98 <ul class="the_list"> 99 <li><strong>DENY:</strong> <?php _e( 'Block all websites from framing your site (most secure)', 'security-header-generator' ); ?></li>100 <li><strong>SAMEORIGIN:</strong> <?php _e( 'Only allow your own domain to frame your site (useful if you need iframes on your own site)', 'security-header-generator' ); ?></li>101 </ul> 102 </li> 103 </ul> 104 </li> 105 <li> 106 <strong><?php _e( 'Access Control Methods', 'security-header-generator' ); ?></strong>107 <ul class="the_list"> 108 <li> 109 <?php _e( 'Controls which HTTP request methods (like GET, POST, etc.) external websites can use when accessing your site. This is useful for API security.', 'security-header-generator' ); ?>110 <ul class="the_list"> 111 <li> 112 <?php _e( 'Learn more:', 'security-header-generator' ); ?>97 <?php esc_html_e( 'Options:', 'security-header-generator' ); ?> 98 <ul class="the_list"> 99 <li><strong>DENY:</strong> <?php esc_html_e( 'Block all websites from framing your site (most secure)', 'security-header-generator' ); ?></li> 100 <li><strong>SAMEORIGIN:</strong> <?php esc_html_e( 'Only allow your own domain to frame your site (useful if you need iframes on your own site)', 'security-header-generator' ); ?></li> 101 </ul> 102 </li> 103 </ul> 104 </li> 105 <li> 106 <strong><?php esc_html_e( 'Access Control Methods', 'security-header-generator' ); ?></strong> 107 <ul class="the_list"> 108 <li> 109 <?php esc_html_e( 'Controls which HTTP request methods (like GET, POST, etc.) external websites can use when accessing your site. This is useful for API security.', 'security-header-generator' ); ?> 110 <ul class="the_list"> 111 <li> 112 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 113 113 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods</a> 114 114 </li> … … 116 116 </li> 117 117 <li> 118 <?php _e( 'Select which methods to allow. Most public websites need at least GET (for viewing pages). Clicking "Allow All" will check or uncheck all options. <strong>Note:</strong> Unselected methods will be blocked.', 'security-header-generator' ); ?>119 </li> 120 </ul> 121 </li> 122 <li> 123 <strong><?php _e( 'Access Control Credentials', 'security-header-generator' ); ?></strong>124 <ul class="the_list"> 125 <li> 126 <?php _e( 'Allows browsers to send cookies and authentication information when JavaScript makes requests to your site. Useful for AJAX-based features and API calls that require user authentication.', 'security-header-generator' ); ?>127 <ul class="the_list"> 128 <li> 129 <?php _e( 'Learn more:', 'security-header-generator' ); ?>118 <?php esc_html_e( 'Select which methods to allow. Most public websites need at least GET (for viewing pages). Clicking "Allow All" will check or uncheck all options. <strong>Note:</strong> Unselected methods will be blocked.', 'security-header-generator' ); ?> 119 </li> 120 </ul> 121 </li> 122 <li> 123 <strong><?php esc_html_e( 'Access Control Credentials', 'security-header-generator' ); ?></strong> 124 <ul class="the_list"> 125 <li> 126 <?php esc_html_e( 'Allows browsers to send cookies and authentication information when JavaScript makes requests to your site. Useful for AJAX-based features and API calls that require user authentication.', 'security-header-generator' ); ?> 127 <ul class="the_list"> 128 <li> 129 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 130 130 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials</a> 131 131 </li> … … 133 133 </li> 134 134 <li> 135 <?php _e( 'Default is Yes. Most modern websites need this enabled for JavaScript-driven features to work properly.', 'security-header-generator' ); ?>136 </li> 137 </ul> 138 </li> 139 <li> 140 <strong><?php _e( 'Access Control Origin', 'security-header-generator' ); ?></strong>141 <ul class="the_list"> 142 <li> 143 <?php _e( 'Specifies which external websites can access your site\'s resources. This helps prevent unauthorized cross-site requests.', 'security-header-generator' ); ?>144 <ul class="the_list"> 145 <li> 146 <?php _e( 'Learn more:', 'security-header-generator' ); ?>135 <?php esc_html_e( 'Default is Yes. Most modern websites need this enabled for JavaScript-driven features to work properly.', 'security-header-generator' ); ?> 136 </li> 137 </ul> 138 </li> 139 <li> 140 <strong><?php esc_html_e( 'Access Control Origin', 'security-header-generator' ); ?></strong> 141 <ul class="the_list"> 142 <li> 143 <?php esc_html_e( 'Specifies which external websites can access your site\'s resources. This helps prevent unauthorized cross-site requests.', 'security-header-generator' ); ?> 144 <ul class="the_list"> 145 <li> 146 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 147 147 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin</a> 148 148 </li> … … 150 150 </li> 151 151 <li> 152 <?php _e( 'Enter a specific domain (like <code>https://example.com</code>) or use <code>*</code> to allow all domains. If left empty, defaults to <code>*</code>.', 'security-header-generator' ); ?>153 </li> 154 </ul> 155 </li> 156 <li> 157 <strong><?php _e( 'Prevent MimeType Sniffing', 'security-header-generator' ); ?></strong>158 <ul class="the_list"> 159 <li> 160 <?php _e( 'Stops browsers from trying to "guess" the type of files you serve. This prevents attackers from disguising malicious files as safe ones.', 'security-header-generator' ); ?>161 <ul class="the_list"> 162 <li> 163 <?php _e( 'Learn more:', 'security-header-generator' ); ?>152 <?php esc_html_e( 'Enter a specific domain (like <code>https://example.com</code>) or use <code>*</code> to allow all domains. If left empty, defaults to <code>*</code>.', 'security-header-generator' ); ?> 153 </li> 154 </ul> 155 </li> 156 <li> 157 <strong><?php esc_html_e( 'Prevent MimeType Sniffing', 'security-header-generator' ); ?></strong> 158 <ul class="the_list"> 159 <li> 160 <?php esc_html_e( 'Stops browsers from trying to "guess" the type of files you serve. This prevents attackers from disguising malicious files as safe ones.', 'security-header-generator' ); ?> 161 <ul class="the_list"> 162 <li> 163 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 164 164 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options</a> 165 165 </li> … … 169 169 </li> 170 170 <li> 171 <strong><?php _e( 'Origin Referrers', 'security-header-generator' ); ?></strong>172 <ul class="the_list"> 173 <li> 174 <?php _e( 'Controls how much information about your site is shared when users click links to external websites. This protects user privacy.', 'security-header-generator' ); ?>175 <ul class="the_list"> 176 <li> 177 <?php _e( 'Learn more:', 'security-header-generator' ); ?>171 <strong><?php esc_html_e( 'Origin Referrers', 'security-header-generator' ); ?></strong> 172 <ul class="the_list"> 173 <li> 174 <?php esc_html_e( 'Controls how much information about your site is shared when users click links to external websites. This protects user privacy.', 'security-header-generator' ); ?> 175 <ul class="the_list"> 176 <li> 177 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 178 178 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy</a> 179 179 </li> … … 181 181 </li> 182 182 <li> 183 <?php _e( 'Policy options (from most private to least private):', 'security-header-generator' ); ?>184 <ul class="the_list"> 185 <li><strong>no-referrer:</strong> <?php _e( 'Share no information at all', 'security-header-generator' ); ?></li>186 <li><strong>strict-origin:</strong> <?php _e( 'Only share your domain name, only on secure (HTTPS) connections (recommended)', 'security-header-generator' ); ?></li>187 <li><strong>origin:</strong> <?php _e( 'Only share your domain name', 'security-header-generator' ); ?></li>188 <li><strong>same-origin:</strong> <?php _e( 'Share full URL within your own site, but only domain for external sites', 'security-header-generator' ); ?></li>189 <li><strong>strict-origin-when-cross-origin:</strong> <?php _e( 'Share full URL on your site, domain only for external sites (on secure connections)', 'security-header-generator' ); ?></li>190 <li><strong>origin-when-cross-origin:</strong> <?php _e( 'Share full URL on your site, domain only for external sites', 'security-header-generator' ); ?></li>191 <li><strong>no-referrer-when-downgrade:</strong> <?php _e( 'Share full URL except when moving from HTTPS to HTTP', 'security-header-generator' ); ?></li>192 <li><strong>unsafe-url:</strong> <?php _e( 'Always share full URL (least private)', 'security-header-generator' ); ?></li>193 </ul> 194 </li> 195 </ul> 196 </li> 197 <li> 198 <strong><?php _e( 'Force Downloads', 'security-header-generator' ); ?></strong>199 <ul class="the_list"> 200 <li> 201 <?php _e( 'Forces certain files to be downloaded rather than opened directly in the browser. This adds an extra layer of security for file handling.', 'security-header-generator' ); ?>202 <ul class="the_list"> 203 <li><?php _e( 'Learn more:', 'security-header-generator' ); ?> <a target="_blank" href="https://www.nwebsec.com/HttpHeaders/SecurityHeaders/XDownloadOptions">https://www.nwebsec.com/HttpHeaders/SecurityHeaders/XDownloadOptions</a></li>204 </ul> 205 </li> 206 </ul> 207 </li> 208 <li> 209 <strong><?php _e( 'Cross Domain Origins', 'security-header-generator' ); ?></strong>210 <ul class="the_list"> 211 <li> 212 <?php _e( 'Blocks cross-domain access for PDFs and Flash content embedded on your site. This prevents certain types of attacks using these file types.', 'security-header-generator' ); ?>213 <ul class="the_list"> 214 <li> 215 <?php _e( 'Learn more:', 'security-header-generator' ); ?>183 <?php esc_html_e( 'Policy options (from most private to least private):', 'security-header-generator' ); ?> 184 <ul class="the_list"> 185 <li><strong>no-referrer:</strong> <?php esc_html_e( 'Share no information at all', 'security-header-generator' ); ?></li> 186 <li><strong>strict-origin:</strong> <?php esc_html_e( 'Only share your domain name, only on secure (HTTPS) connections (recommended)', 'security-header-generator' ); ?></li> 187 <li><strong>origin:</strong> <?php esc_html_e( 'Only share your domain name', 'security-header-generator' ); ?></li> 188 <li><strong>same-origin:</strong> <?php esc_html_e( 'Share full URL within your own site, but only domain for external sites', 'security-header-generator' ); ?></li> 189 <li><strong>strict-origin-when-cross-origin:</strong> <?php esc_html_e( 'Share full URL on your site, domain only for external sites (on secure connections)', 'security-header-generator' ); ?></li> 190 <li><strong>origin-when-cross-origin:</strong> <?php esc_html_e( 'Share full URL on your site, domain only for external sites', 'security-header-generator' ); ?></li> 191 <li><strong>no-referrer-when-downgrade:</strong> <?php esc_html_e( 'Share full URL except when moving from HTTPS to HTTP', 'security-header-generator' ); ?></li> 192 <li><strong>unsafe-url:</strong> <?php esc_html_e( 'Always share full URL (least private)', 'security-header-generator' ); ?></li> 193 </ul> 194 </li> 195 </ul> 196 </li> 197 <li> 198 <strong><?php esc_html_e( 'Force Downloads', 'security-header-generator' ); ?></strong> 199 <ul class="the_list"> 200 <li> 201 <?php esc_html_e( 'Forces certain files to be downloaded rather than opened directly in the browser. This adds an extra layer of security for file handling.', 'security-header-generator' ); ?> 202 <ul class="the_list"> 203 <li><?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> <a target="_blank" href="https://www.nwebsec.com/HttpHeaders/SecurityHeaders/XDownloadOptions">https://www.nwebsec.com/HttpHeaders/SecurityHeaders/XDownloadOptions</a></li> 204 </ul> 205 </li> 206 </ul> 207 </li> 208 <li> 209 <strong><?php esc_html_e( 'Cross Domain Origins', 'security-header-generator' ); ?></strong> 210 <ul class="the_list"> 211 <li> 212 <?php esc_html_e( 'Blocks cross-domain access for PDFs and Flash content embedded on your site. This prevents certain types of attacks using these file types.', 'security-header-generator' ); ?> 213 <ul class="the_list"> 214 <li> 215 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 216 216 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Permitted-Cross-Domain-Policies">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Permitted-Cross-Domain-Policies</a> 217 217 </li> … … 221 221 </li> 222 222 <li> 223 <strong><?php _e( 'Upgrade Insecure Requests', 'security-header-generator' ); ?></strong>224 <ul class="the_list"> 225 <li> 226 <?php _e( 'Automatically upgrades all insecure (HTTP) requests to secure (HTTPS) requests. This ensures all resources load securely even if old links reference HTTP.', 'security-header-generator' ); ?>227 <ul class="the_list"> 228 <li> 229 <?php _e( 'Learn more:', 'security-header-generator' ); ?>223 <strong><?php esc_html_e( 'Upgrade Insecure Requests', 'security-header-generator' ); ?></strong> 224 <ul class="the_list"> 225 <li> 226 <?php esc_html_e( 'Automatically upgrades all insecure (HTTP) requests to secure (HTTPS) requests. This ensures all resources load securely even if old links reference HTTP.', 'security-header-generator' ); ?> 227 <ul class="the_list"> 228 <li> 229 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 230 230 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests</a> 231 231 </li> … … 235 235 </li> 236 236 <li> 237 <strong><?php _e( 'Cross Origin Embedder Policy', 'security-header-generator' ); ?></strong>238 <ul class="the_list"> 239 <li> 240 <?php _e( 'Controls how your site can embed resources from other domains. This prevents certain types of attacks involving embedded content.', 'security-header-generator' ); ?>241 <ul class="the_list"> 242 <li> 243 <?php _e( 'Learn more:', 'security-header-generator' ); ?>237 <strong><?php esc_html_e( 'Cross Origin Embedder Policy', 'security-header-generator' ); ?></strong> 238 <ul class="the_list"> 239 <li> 240 <?php esc_html_e( 'Controls how your site can embed resources from other domains. This prevents certain types of attacks involving embedded content.', 'security-header-generator' ); ?> 241 <ul class="the_list"> 242 <li> 243 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 244 244 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy</a> 245 245 </li> … … 247 247 </li> 248 248 <li> 249 <?php _e( 'Options:', 'security-header-generator' ); ?>250 <ul class="the_list"> 251 <li><strong>unsafe-none:</strong> <?php _e( 'Allow embedding external resources without explicit permission (default, less secure)', 'security-header-generator' ); ?></li>252 <li><strong>require-corp:</strong> <?php _e( 'Only allow resources explicitly marked as embeddable (more secure, may require configuration)', 'security-header-generator' ); ?></li>253 </ul> 254 </li> 255 </ul> 256 </li> 257 <li> 258 <strong><?php _e( 'Cross Origin Resource Policy', 'security-header-generator' ); ?></strong>259 <ul class="the_list"> 260 <li> 261 <?php _e( 'Controls which websites can load resources (images, scripts, etc.) from your site. This prevents unauthorized use of your content.', 'security-header-generator' ); ?>262 <ul class="the_list"> 263 <li> 264 <?php _e( 'Learn more:', 'security-header-generator' ); ?>249 <?php esc_html_e( 'Options:', 'security-header-generator' ); ?> 250 <ul class="the_list"> 251 <li><strong>unsafe-none:</strong> <?php esc_html_e( 'Allow embedding external resources without explicit permission (default, less secure)', 'security-header-generator' ); ?></li> 252 <li><strong>require-corp:</strong> <?php esc_html_e( 'Only allow resources explicitly marked as embeddable (more secure, may require configuration)', 'security-header-generator' ); ?></li> 253 </ul> 254 </li> 255 </ul> 256 </li> 257 <li> 258 <strong><?php esc_html_e( 'Cross Origin Resource Policy', 'security-header-generator' ); ?></strong> 259 <ul class="the_list"> 260 <li> 261 <?php esc_html_e( 'Controls which websites can load resources (images, scripts, etc.) from your site. This prevents unauthorized use of your content.', 'security-header-generator' ); ?> 262 <ul class="the_list"> 263 <li> 264 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 265 265 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Cross-Origin_Resource_Policy">https://developer.mozilla.org/en-US/docs/Web/HTTP/Cross-Origin_Resource_Policy</a> 266 266 </li> … … 268 268 </li> 269 269 <li> 270 <?php _e( 'Options:', 'security-header-generator' ); ?>271 <ul class="the_list"> 272 <li><strong>same-origin:</strong> <?php _e( 'Only your exact domain can use your resources (most secure)', 'security-header-generator' ); ?></li>273 <li><strong>same-site:</strong> <?php _e( 'Your domain and subdomains can use your resources', 'security-header-generator' ); ?></li>274 <li><strong>cross-origin:</strong> <?php _e( 'Any website can use your resources (least secure)', 'security-header-generator' ); ?></li>275 </ul> 276 </li> 277 </ul> 278 </li> 279 <li> 280 <strong><?php _e( 'Cross Origin Opener Policy', 'security-header-generator' ); ?></strong>281 <ul class="the_list"> 282 <li> 283 <?php _e( 'Controls whether other websites can access your site when opened in popups or new tabs. This prevents certain cross-site attacks.', 'security-header-generator' ); ?>284 <ul class="the_list"> 285 <li> 286 <?php _e( 'Learn more:', 'security-header-generator' ); ?>270 <?php esc_html_e( 'Options:', 'security-header-generator' ); ?> 271 <ul class="the_list"> 272 <li><strong>same-origin:</strong> <?php esc_html_e( 'Only your exact domain can use your resources (most secure)', 'security-header-generator' ); ?></li> 273 <li><strong>same-site:</strong> <?php esc_html_e( 'Your domain and subdomains can use your resources', 'security-header-generator' ); ?></li> 274 <li><strong>cross-origin:</strong> <?php esc_html_e( 'Any website can use your resources (least secure)', 'security-header-generator' ); ?></li> 275 </ul> 276 </li> 277 </ul> 278 </li> 279 <li> 280 <strong><?php esc_html_e( 'Cross Origin Opener Policy', 'security-header-generator' ); ?></strong> 281 <ul class="the_list"> 282 <li> 283 <?php esc_html_e( 'Controls whether other websites can access your site when opened in popups or new tabs. This prevents certain cross-site attacks.', 'security-header-generator' ); ?> 284 <ul class="the_list"> 285 <li> 286 <?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> 287 287 <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy</a> 288 288 </li> … … 290 290 </li> 291 291 <li> 292 <?php _e( 'Options:', 'security-header-generator' ); ?>293 <ul class="the_list"> 294 <li><strong>unsafe-none:</strong> <?php _e( 'Allow normal popup/tab behavior (default)', 'security-header-generator' ); ?></li>295 <li><strong>same-origin-allow-popups:</strong> <?php _e( 'Allow popups but isolate from other origins', 'security-header-generator' ); ?></li>296 <li><strong>same-origin:</strong> <?php _e( 'Complete isolation from other origins (most secure)', 'security-header-generator' ); ?></li>292 <?php esc_html_e( 'Options:', 'security-header-generator' ); ?> 293 <ul class="the_list"> 294 <li><strong>unsafe-none:</strong> <?php esc_html_e( 'Allow normal popup/tab behavior (default)', 'security-header-generator' ); ?></li> 295 <li><strong>same-origin-allow-popups:</strong> <?php esc_html_e( 'Allow popups but isolate from other origins', 'security-header-generator' ); ?></li> 296 <li><strong>same-origin:</strong> <?php esc_html_e( 'Complete isolation from other origins (most secure)', 'security-header-generator' ); ?></li> 297 297 </ul> 298 298 </li> … … 302 302 </li> 303 303 304 <li><h3><?php _e( 'Content Security Policy Tab', 'security-header-generator' ); ?></h3>305 <p><?php _e( 'Content Security Policy (CSP) is an advanced security feature that controls which external resources your website can load. This prevents many types of attacks including Cross-Site Scripting (XSS).', 'security-header-generator' ); ?></p>304 <li><h3><?php esc_html_e( 'Content Security Policy Tab', 'security-header-generator' ); ?></h3> 305 <p><?php esc_html_e( 'Content Security Policy (CSP) is an advanced security feature that controls which external resources your website can load. This prevents many types of attacks including Cross-Site Scripting (XSS).', 'security-header-generator' ); ?></p> 306 306 <ul class="the_list"> 307 307 <li> 308 <strong><?php _e( 'Generate CSP', 'security-header-generator' ); ?></strong>309 <ul class="the_list"> 310 <li> 311 <?php _e( 'Enable this to create a Content Security Policy for your site. This will show many additional fields where you can specify which external resources (scripts, styles, images, etc.) are allowed to load.', 'security-header-generator' ); ?>312 <ul class="the_list"> 313 <li><?php _e( 'Enter external domains in the Source fields using a space-separated list (example: <code>cdn.example.com fonts.google.com</code>)', 'security-header-generator' ); ?></li>314 <li><?php _e( 'Learn more:', 'security-header-generator' ); ?> <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP" target="_blank">https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP</a></li>315 </ul> 316 </li> 317 </ul> 318 </li> 319 <li> 320 <strong><?php _e( 'Apply to Admin', 'security-header-generator' ); ?></strong>321 <ul class="the_list"> 322 <li><?php _e( 'Choose whether to apply the Content Security Policy to your WordPress admin area as well as the public site. <strong>Warning:</strong> This may break admin features if not configured correctly. Test thoroughly.', 'security-header-generator' ); ?></li>323 </ul> 324 </li> 325 <li> 326 <strong><?php _e( 'Include WordPress Defaults', 'security-header-generator' ); ?></strong>327 <ul class="the_list"> 328 <li> 329 <?php _e( 'This toggle controls whether WordPress default domains are <strong>added to</strong> your custom values. It does NOT replace your custom settings.', 'security-header-generator' ); ?>330 </li> 331 <li> 332 <?php _e( 'How it works:', 'security-header-generator' ); ?>333 <ul class="the_list"> 334 <li><strong><?php _e( 'When ON:', 'security-header-generator' ); ?></strong> <?php_e( 'Your custom domains PLUS WordPress default domains are included in the CSP', 'security-header-generator' ); ?></li>335 <li><strong><?php _e( 'When OFF:', 'security-header-generator' ); ?></strong> <?php_e( 'Only your custom domains are included in the CSP', 'security-header-generator' ); ?></li>336 </ul> 337 </li> 338 <li> 339 <?php _e( 'WordPress default domains that will be added when enabled:', 'security-header-generator' ); ?>308 <strong><?php esc_html_e( 'Generate CSP', 'security-header-generator' ); ?></strong> 309 <ul class="the_list"> 310 <li> 311 <?php esc_html_e( 'Enable this to create a Content Security Policy for your site. This will show many additional fields where you can specify which external resources (scripts, styles, images, etc.) are allowed to load.', 'security-header-generator' ); ?> 312 <ul class="the_list"> 313 <li><?php esc_html_e( 'Enter external domains in the Source fields using a space-separated list (example: <code>cdn.example.com fonts.google.com</code>)', 'security-header-generator' ); ?></li> 314 <li><?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP" target="_blank">https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP</a></li> 315 </ul> 316 </li> 317 </ul> 318 </li> 319 <li> 320 <strong><?php esc_html_e( 'Apply to Admin', 'security-header-generator' ); ?></strong> 321 <ul class="the_list"> 322 <li><?php esc_html_e( 'Choose whether to apply the Content Security Policy to your WordPress admin area as well as the public site. <strong>Warning:</strong> This may break admin features if not configured correctly. Test thoroughly.', 'security-header-generator' ); ?></li> 323 </ul> 324 </li> 325 <li> 326 <strong><?php esc_html_e( 'Include WordPress Defaults', 'security-header-generator' ); ?></strong> 327 <ul class="the_list"> 328 <li> 329 <?php esc_html_e( 'This toggle controls whether WordPress default domains are <strong>added to</strong> your custom values. It does NOT replace your custom settings.', 'security-header-generator' ); ?> 330 </li> 331 <li> 332 <?php esc_html_e( 'How it works:', 'security-header-generator' ); ?> 333 <ul class="the_list"> 334 <li><strong><?php esc_html_e( 'When ON:', 'security-header-generator' ); ?></strong> <?php esc_html_e( 'Your custom domains PLUS WordPress default domains are included in the CSP', 'security-header-generator' ); ?></li> 335 <li><strong><?php esc_html_e( 'When OFF:', 'security-header-generator' ); ?></strong> <?php esc_html_e( 'Only your custom domains are included in the CSP', 'security-header-generator' ); ?></li> 336 </ul> 337 </li> 338 <li> 339 <?php esc_html_e( 'WordPress default domains that will be added when enabled:', 'security-header-generator' ); ?> 340 340 <ul class="the_list"> 341 341 <li><strong>style-src:</strong> <code>https: *.googleapis.com</code></li> … … 351 351 </li> 352 352 <li> 353 <strong><?php _e( 'Understanding CSP Directive Configuration', 'security-header-generator' ); ?></strong>354 <ul class="the_list"> 355 <li><?php _e( 'Each CSP directive (like script-src, style-src, etc.) has two configuration sections:', 'security-header-generator' ); ?></li>356 <li> 357 <strong>1. <?php _e( 'Source Field (Left Side):', 'security-header-generator' ); ?></strong>358 <ul class="the_list"> 359 <li><?php _e( 'Enter external domains that should be allowed for this type of resource', 'security-header-generator' ); ?></li>360 <li><?php _e( 'Example for scripts: <code>cdn.jsdelivr.net ajax.googleapis.com</code>', 'security-header-generator' ); ?></li>361 <li><?php _e( 'Separate multiple domains with spaces', 'security-header-generator' ); ?></li>362 </ul> 363 </li> 364 <li> 365 <strong>2. <?php _e( 'Extra Settings Checkboxes (Right Side):', 'security-header-generator' ); ?></strong>366 <ul class="the_list"> 367 <li><strong>Self:</strong> <?php _e( 'Allow resources from your own domain (recommended for most directives)', 'security-header-generator' ); ?></li>368 <li><strong>Inline:</strong> <?php _e( 'Allow inline styles/scripts embedded in your HTML. <strong>Warning:</strong> This reduces security and should only be used if necessary.', 'security-header-generator' ); ?></li>369 <li><strong>Eval:</strong> <?php _e( 'Allow JavaScript eval() function. <strong>Warning:</strong> This reduces security and should only be used if necessary.', 'security-header-generator' ); ?></li>370 <li><strong>None:</strong> <?php _e( 'Block ALL sources for this directive (overrides everything else). Use this to completely disable a resource type.', 'security-header-generator' ); ?></li>371 </ul> 372 </li> 373 </ul> 374 </li> 375 <li> 376 <strong><?php _e( 'How WordPress Defaults Toggle Affects Settings', 'security-header-generator' ); ?></strong>377 <ul class="the_list"> 378 <li><?php _e( 'When you turn WordPress Defaults ON:', 'security-header-generator' ); ?>379 <ul class="the_list"> 380 <li><?php _e( 'WordPress default domains are ADDED to your Source field values', 'security-header-generator' ); ?></li>381 <li><?php _e( 'Extra Settings checkboxes are temporarily set (usually "Self" is checked)', 'security-header-generator' ); ?></li>382 <li><?php _e( 'Your original checkbox selections are saved in the background', 'security-header-generator' ); ?></li>383 </ul> 384 </li> 385 <li><?php _e( 'When you turn WordPress Defaults OFF:', 'security-header-generator' ); ?>386 <ul class="the_list"> 387 <li><?php _e( 'WordPress default domains are removed', 'security-header-generator' ); ?></li>388 <li><?php _e( 'Your original Extra Settings checkbox selections are restored', 'security-header-generator' ); ?></li>389 </ul> 390 </li> 391 <li> 392 <strong><?php _e( 'Important:', 'security-header-generator' ); ?></strong> <?php_e( 'Changes only take effect when you click "Save Settings". Toggling WordPress Defaults on/off without saving will not permanently change your configuration.', 'security-header-generator' ); ?>353 <strong><?php esc_html_e( 'Understanding CSP Directive Configuration', 'security-header-generator' ); ?></strong> 354 <ul class="the_list"> 355 <li><?php esc_html_e( 'Each CSP directive (like script-src, style-src, etc.) has two configuration sections:', 'security-header-generator' ); ?></li> 356 <li> 357 <strong>1. <?php esc_html_e( 'Source Field (Left Side):', 'security-header-generator' ); ?></strong> 358 <ul class="the_list"> 359 <li><?php esc_html_e( 'Enter external domains that should be allowed for this type of resource', 'security-header-generator' ); ?></li> 360 <li><?php esc_html_e( 'Example for scripts: <code>cdn.jsdelivr.net ajax.googleapis.com</code>', 'security-header-generator' ); ?></li> 361 <li><?php esc_html_e( 'Separate multiple domains with spaces', 'security-header-generator' ); ?></li> 362 </ul> 363 </li> 364 <li> 365 <strong>2. <?php esc_html_e( 'Extra Settings Checkboxes (Right Side):', 'security-header-generator' ); ?></strong> 366 <ul class="the_list"> 367 <li><strong>Self:</strong> <?php esc_html_e( 'Allow resources from your own domain (recommended for most directives)', 'security-header-generator' ); ?></li> 368 <li><strong>Inline:</strong> <?php esc_html_e( 'Allow inline styles/scripts embedded in your HTML. <strong>Warning:</strong> This reduces security and should only be used if necessary.', 'security-header-generator' ); ?></li> 369 <li><strong>Eval:</strong> <?php esc_html_e( 'Allow JavaScript eval() function. <strong>Warning:</strong> This reduces security and should only be used if necessary.', 'security-header-generator' ); ?></li> 370 <li><strong>None:</strong> <?php esc_html_e( 'Block ALL sources for this directive (overrides everything else). Use this to completely disable a resource type.', 'security-header-generator' ); ?></li> 371 </ul> 372 </li> 373 </ul> 374 </li> 375 <li> 376 <strong><?php esc_html_e( 'How WordPress Defaults Toggle Affects Settings', 'security-header-generator' ); ?></strong> 377 <ul class="the_list"> 378 <li><?php esc_html_e( 'When you turn WordPress Defaults ON:', 'security-header-generator' ); ?> 379 <ul class="the_list"> 380 <li><?php esc_html_e( 'WordPress default domains are ADDED to your Source field values', 'security-header-generator' ); ?></li> 381 <li><?php esc_html_e( 'Extra Settings checkboxes are temporarily set (usually "Self" is checked)', 'security-header-generator' ); ?></li> 382 <li><?php esc_html_e( 'Your original checkbox selections are saved in the background', 'security-header-generator' ); ?></li> 383 </ul> 384 </li> 385 <li><?php esc_html_e( 'When you turn WordPress Defaults OFF:', 'security-header-generator' ); ?> 386 <ul class="the_list"> 387 <li><?php esc_html_e( 'WordPress default domains are removed', 'security-header-generator' ); ?></li> 388 <li><?php esc_html_e( 'Your original Extra Settings checkbox selections are restored', 'security-header-generator' ); ?></li> 389 </ul> 390 </li> 391 <li> 392 <strong><?php esc_html_e( 'Important:', 'security-header-generator' ); ?></strong> <?php esc_html_e( 'Changes only take effect when you click "Save Settings". Toggling WordPress Defaults on/off without saving will not permanently change your configuration.', 'security-header-generator' ); ?> 393 393 </li> 394 394 </ul> … … 397 397 </li> 398 398 399 <li><h3><?php _e( 'Permissions Policy Tab', 'security-header-generator' ); ?></h3>400 <p><?php _e( 'Permissions Policy (formerly Feature Policy) controls which browser features and APIs your website and embedded content can use. This prevents malicious scripts from accessing sensitive features like camera, microphone, or geolocation.', 'security-header-generator' ); ?></p>399 <li><h3><?php esc_html_e( 'Permissions Policy Tab', 'security-header-generator' ); ?></h3> 400 <p><?php esc_html_e( 'Permissions Policy (formerly Feature Policy) controls which browser features and APIs your website and embedded content can use. This prevents malicious scripts from accessing sensitive features like camera, microphone, or geolocation.', 'security-header-generator' ); ?></p> 401 401 <ul class="the_list"> 402 402 <li> 403 <strong><?php _e( 'Configure Permissions Policy', 'security-header-generator' ); ?></strong>404 <ul class="the_list"> 405 <li> 406 <?php _e( 'Enable this to control browser feature permissions. For each feature, you can choose:', 'security-header-generator' ); ?>407 <ul class="the_list"> 408 <li><strong>None:</strong> <?php _e( 'Block this feature completely', 'security-header-generator' ); ?></li>409 <li><strong>Any:</strong> <?php _e( 'Allow from any domain (least secure)', 'security-header-generator' ); ?></li>410 <li><strong>Self:</strong> <?php _e( 'Only allow from your own domain (recommended)', 'security-header-generator' ); ?></li>411 <li><strong>Source:</strong> <?php _e( 'Allow from specific domains you list', 'security-header-generator' ); ?></li>412 </ul> 413 </li> 414 <li> 415 <?php _e( 'If you select "Source", enter full URLs with protocol: <code>https://example.com https://trusted-site.com</code>', 'security-header-generator' ); ?>416 </li> 417 <li><?php _e( 'Learn more:', 'security-header-generator' ); ?> <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy" target="_blank">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy</a></li>418 </ul> 419 </li> 420 <li> 421 <strong><?php _e( 'Apply to Admin', 'security-header-generator' ); ?></strong>422 <ul class="the_list"> 423 <li><?php _e( 'Choose whether to apply Permissions Policy to your WordPress admin area as well as the public site.', 'security-header-generator' ); ?></li>403 <strong><?php esc_html_e( 'Configure Permissions Policy', 'security-header-generator' ); ?></strong> 404 <ul class="the_list"> 405 <li> 406 <?php esc_html_e( 'Enable this to control browser feature permissions. For each feature, you can choose:', 'security-header-generator' ); ?> 407 <ul class="the_list"> 408 <li><strong>None:</strong> <?php esc_html_e( 'Block this feature completely', 'security-header-generator' ); ?></li> 409 <li><strong>Any:</strong> <?php esc_html_e( 'Allow from any domain (least secure)', 'security-header-generator' ); ?></li> 410 <li><strong>Self:</strong> <?php esc_html_e( 'Only allow from your own domain (recommended)', 'security-header-generator' ); ?></li> 411 <li><strong>Source:</strong> <?php esc_html_e( 'Allow from specific domains you list', 'security-header-generator' ); ?></li> 412 </ul> 413 </li> 414 <li> 415 <?php esc_html_e( 'If you select "Source", enter full URLs with protocol: <code>https://example.com https://trusted-site.com</code>', 'security-header-generator' ); ?> 416 </li> 417 <li><?php esc_html_e( 'Learn more:', 'security-header-generator' ); ?> <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy" target="_blank">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy</a></li> 418 </ul> 419 </li> 420 <li> 421 <strong><?php esc_html_e( 'Apply to Admin', 'security-header-generator' ); ?></strong> 422 <ul class="the_list"> 423 <li><?php esc_html_e( 'Choose whether to apply Permissions Policy to your WordPress admin area as well as the public site.', 'security-header-generator' ); ?></li> 424 424 </ul> 425 425 </li> … … 429 429 430 430 <div class="technical-section"> 431 <h3><?php _e( 'Technical Reference: CSP Directives', 'security-header-generator' ); ?></h3>432 <p><em><?php _e( 'This section provides technical details about each Content Security Policy directive. These are automatically generated based on the plugin configuration.', 'security-header-generator' ); ?></em></p>431 <h3><?php esc_html_e( 'Technical Reference: CSP Directives', 'security-header-generator' ); ?></h3> 432 <p><em><?php esc_html_e( 'This section provides technical details about each Content Security Policy directive. These are automatically generated based on the plugin configuration.', 'security-header-generator' ); ?></em></p> 433 433 <ul class="the_list"> 434 434 <?php … … 448 448 </ul> 449 449 450 <h3><?php _e( 'Technical Reference: Permissions Policy Directives', 'security-header-generator' ); ?></h3>451 <p><em><?php _e( 'This section provides technical details about each Permissions Policy directive. Note that browser support varies by directive.', 'security-header-generator' ); ?></em></p>450 <h3><?php esc_html_e( 'Technical Reference: Permissions Policy Directives', 'security-header-generator' ); ?></h3> 451 <p><em><?php esc_html_e( 'This section provides technical details about each Permissions Policy directive. Note that browser support varies by directive.', 'security-header-generator' ); ?></em></p> 452 452 <ul class="the_list"> 453 453 <?php -
security-header-generator/trunk/work/inc/kcp-cspgen-common.php
r3265831 r3420349 54 54 'desc' => __( 'Controls whether the current document is allowed to gather information about the acceleration of the device through the Accelerometer interface.', 'security-header-generator' ), 55 55 ), 56 /* Commented out - limited browser support 56 57 'ambient-light-sensor' => array( 57 58 'id' => 'fp_ambient-light-sensor', … … 59 60 'desc' => __( 'Controls whether the current document is allowed to gather information about the amount of light in the environment around the device through the AmbientLightSensor interface.', 'security-header-generator' ), 60 61 ), 62 */ 61 63 'autoplay' => array( 62 64 'id' => 'fp_autoplay', … … 64 66 'desc' => __( 'Controls whether the current document is allowed to autoplay media requested through the HTMLMediaElement interface. When this policy is disabled and there were no user gestures, the Promise returned by HTMLMediaElement.play() will reject with a DOMException. The autoplay attribute on <audio> and <video> elements will be ignored.', 'security-header-generator' ), 65 67 ), 68 'bluetooth' => array( 69 'id' => 'fp_bluetooth', 70 'title' => __( 'Bluetooth', 'security-header-generator' ), 71 'desc' => __( 'Controls whether the use of the Web Bluetooth API is allowed. When this policy is disabled, the methods of the Bluetooth object returned by Navigator.bluetooth will either return false or reject the returned Promise with a SecurityError DOMException.', 'security-header-generator' ), 72 ), 66 73 'camera' => array( 67 74 'id' => 'fp_camera', … … 69 76 'desc' => __( 'Controls whether the current document is allowed to use video input devices. When this policy is disabled, the Promise returned by getUserMedia() will reject with a NotAllowedError DOMException.', 'security-header-generator' ), 70 77 ), 78 'captured-surface-control' => array( 79 'id' => 'fp_captured-surface-control', 80 'title' => __( 'Captured Surface Control', 'security-header-generator' ), 81 'desc' => __( 'Controls whether the Captured Surface Control feature can be used to programmatically manipulate a display surface being captured (such as a browser tab or window), including scrolling and zooming.', 'security-header-generator' ), 82 ), 83 'compute-pressure' => array( 84 'id' => 'fp_compute-pressure', 85 'title' => __( 'Compute Pressure', 'security-header-generator' ), 86 'desc' => __( 'Controls access to the Compute Pressure API, which allows monitoring of compute pressure (CPU, GPU) on the device.', 'security-header-generator' ), 87 ), 88 'cross-origin-isolated' => array( 89 'id' => 'fp_cross-origin-isolated', 90 'title' => __( 'Cross Origin Isolated', 'security-header-generator' ), 91 'desc' => __( 'Controls whether the document is cross-origin isolated, enabling certain powerful features like SharedArrayBuffer and high-precision timers.', 'security-header-generator' ), 92 ), 93 'deferred-fetch' => array( 94 'id' => 'fp_deferred-fetch', 95 'title' => __( 'Deferred Fetch', 'security-header-generator' ), 96 'desc' => __( 'Controls whether the current document is allowed to use the fetchLater() API to defer fetch requests until after the document is unloaded.', 'security-header-generator' ), 97 ), 98 'deferred-fetch-minimal' => array( 99 'id' => 'fp_deferred-fetch-minimal', 100 'title' => __( 'Deferred Fetch Minimal', 'security-header-generator' ), 101 'desc' => __( 'Controls whether the current document is allowed to use the fetchLater() API with minimal quota restrictions.', 'security-header-generator' ), 102 ), 71 103 'display-capture' => array( 72 104 'id' => 'fp_display-capture', … … 111 143 ), 112 144 145 /* Commented out - limited browser support 113 146 'magnetometer' => array( 114 147 'id' => 'fp_magnetometer', … … 116 149 'desc' => __( 'Controls whether the current document is allowed to gather information about the orientation of the device through the Magnetometer interface', 'security-header-generator' ), 117 150 ), 151 */ 118 152 'microphone' => array( 119 153 'id' => 'fp_microphone', … … 126 160 'desc' => __( 'Controls whether the current document is allowed to use the Web MIDI API. When this policy is disabled, the Promise returned by Navigator.requestMIDIAccess() will reject with a DOMException', 'security-header-generator' ), 127 161 ), 162 'otp-credentials' => array( 163 'id' => 'fp_otp-credentials', 164 'title' => __( 'OTP Credentials', 'security-header-generator' ), 165 'desc' => __( 'Controls whether the current document is allowed to use the WebOTP API to request a one-time password (OTP) from a specially-formatted SMS message sent by the app\'s server.', 'security-header-generator' ), 166 ), 128 167 'payment' => array( 129 168 'id' => 'fp_payment', … … 138 177 'publickey-credentials-create' => array( 139 178 'id' => 'fp_publickey-credentials-create', 140 'title' => __( 'Publicke tCredentials Create', 'security-header-generator' ),179 'title' => __( 'Publickey Credentials Create', 'security-header-generator' ), 141 180 'desc' => __( 'Controls whether the current document is allowed to use the Web Authentication API to create new WebAuthn credentials, i.e., via navigator.credentials.create({publicKey}).', 'security-header-generator' ), 142 181 ), 143 182 'publickey-credentials-get' => array( 144 183 'id' => 'fp_publickey-credentials-get', 145 'title' => __( 'Publicke tCredentials Get', 'security-header-generator' ),184 'title' => __( 'Publickey Credentials Get', 'security-header-generator' ), 146 185 'desc' => __( 'Controls whether the current document is allowed to use the Web Authentication API to retrieve already stored public-key credentials, i.e. via navigator.credentials.get({publicKey: ..., ...})', 'security-header-generator' ), 147 186 ), … … 156 195 'desc' => __( 'Controls whether the current document is allowed to use the Web Serial API to communicate with serial devices, either directly connected via a serial port, or via USB or Bluetooth devices emulating a serial port.', 'security-header-generator' ), 157 196 ), 197 'storage-access' => array( 198 'id' => 'fp_storage-access', 199 'title' => __( 'Storage Access', 'security-header-generator' ), 200 'desc' => __( 'Controls whether a document loaded in a third-party context (i.e. embedded in an <iframe>) is allowed to use the Storage Access API to request access to unpartitioned cookies.', 'security-header-generator' ), 201 ), 202 /* Commented out - limited browser support 158 203 'sync-xhr' => array( 159 204 'id' => 'fp_sync-xhr', … … 161 206 'desc' => __( 'Controls whether the current document is allowed to make synchronous XMLHttpRequest requests', 'security-header-generator' ), 162 207 ), 208 */ 163 209 'usb' => array( 164 210 'id' => 'fp_usb', … … 170 216 'title' => __( 'Web Share', 'security-header-generator' ), 171 217 'desc' => __( 'Controls whether the current document is allowed to use the Navigator.share() method of the Web Share API to share text, links, images, and other content to arbitrary destinations of the user\'s choice.', 'security-header-generator' ), 218 ), 219 'window-management' => array( 220 'id' => 'fp_window-management', 221 'title' => __( 'Window Management', 'security-header-generator' ), 222 'desc' => __( 'Controls whether the current document is allowed to use the Window Management API to manage windows on multiple displays.', 'security-header-generator' ), 172 223 ), 173 224 'xr-spatial-tracking' => array( -
security-header-generator/trunk/work/inc/kcp-cspgen-settings.php
r3420274 r3420349 133 133 'title' => __( 'Standard Security Headers', 'security-header-generator' ), 134 134 'fields' => $this -> kcp_standard_security_headers( ), 135 'description' => __( '<p> <strong>NOTE</strong><br />Make sure to check your web browsers <strong>Development Tools</strong>once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.</p>', 'security-header-generator' ),135 'description' => __( '<p>NOTE<br />Make sure to check your web browsers Development Tools once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.</p>', 'security-header-generator' ), 136 136 ) 137 137 ); … … 142 142 'title' => __( 'Content Security Headers', 'security-header-generator' ), 143 143 'fields' => $this -> kcp_content_security_policy_headers( ), 144 'description' => __( '<p> <strong>NOTE</strong><br />Make sure to check your web browsers <strong>Development Tools</strong> once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.<br /><br /><strong>Suggested:</strong><br />Add your domains to the necessary attribute prior to adding the external resource...</p>', 'security-header-generator' ),144 'description' => __( '<p>NOTE<br />Make sure to check your web browsers Development Tools once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.<br /><br />Suggested:<br />Add your domains to the necessary attribute prior to adding the external resource...</p>', 'security-header-generator' ), 145 145 'class' => 'wpsh_content_security_policy' 146 146 ) … … 152 152 'title' => __( 'Permissions Policy Headers', 'security-header-generator' ), 153 153 'fields' => $this -> kcp_permissions_policy_headers( ), 154 'description' => __( '<p> <strong>NOTE</strong><br />Make sure to check your web browsers <strong>Development Tools</strong>once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.</p>', 'security-header-generator' ),154 'description' => __( '<p>NOTE<br />Make sure to check your web browsers Development Tools once you are finished configuring this. You will need to make sure you are not blocking necessary items for your website.</p>', 'security-header-generator' ), 155 155 ) 156 156 ); … … 217 217 'type' => 'switcher', 218 218 'title' => __( 'Apply to the REST API?', 'security-header-generator' ), 219 'desc' => __( 'This will attempt to apply all headers to the REST API of your site.<br /> <strong>NOTE:</strong>Due to the default nature of the REST API, the headers will also be applied to the admin areas of the website. You will need to check for breakages after applying.', 'security-header-generator' ),219 'desc' => __( 'This will attempt to apply all headers to the REST API of your site.<br />NOTE: Due to the default nature of the REST API, the headers will also be applied to the admin areas of the website. You will need to check for breakages after applying.', 'security-header-generator' ), 220 220 'default' => false, 221 221 ), … … 245 245 'id' => 'include_sts_subdomains', 246 246 'type' => 'switcher', 247 'title' => __( ' <strong>Include Subdomains?</strong>', 'security-header-generator' ),247 'title' => __( 'Include Subdomains?', 'security-header-generator' ), 248 248 'desc' => __( 'If this optional parameter is specified, this rule applies to all of the site\'s subdomains as well.', 'security-header-generator' ), 249 249 'default' => false, … … 255 255 'id' => 'include_sts_preload', 256 256 'type' => 'switcher', 257 'title' => __( ' <strong>Preload?</strong>', 'security-header-generator' ),257 'title' => __( 'Preload?', 'security-header-generator' ), 258 258 'desc' => __( 'If you enable preload, you should change the cache age to 2 Years. (63072000)', 'security-header-generator' ), 259 259 'default' => false, … … 267 267 'type' => 'switcher', 268 268 'title' => __( 'Enforce Certificate Transparency?', 'security-header-generator' ), 269 'desc' => __( 'Setting this will add another header to enforce Certificate Transparency. See here for more information: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT" target="_blank">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT</a><br /> <strong>NOTE: </strong>This header is likely to be deprecated in the near future.', 'security-header-generator' ),269 'desc' => __( 'Setting this will add another header to enforce Certificate Transparency. See here for more information: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT" target="_blank">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT</a><br />NOTE: This header is likely to be deprecated in the near future.', 'security-header-generator' ), 270 270 'default' => false, 271 271 ), … … 308 308 'type' => 'checkbox', 309 309 'title' => __( 'Methods', 'security-header-generator' ), 310 'desc' => __( 'Select the methods you wish to allow.<br /> <strong>NOTE:</strong> Most public websites require at least GET to be viewable online.<br /><strong>NOTE 2:</strong>This will block unselected methods.', 'security-header-generator' ),310 'desc' => __( 'Select the methods you wish to allow.<br />NOTE: Most public websites require at least GET to be viewable online.<br />NOTE 2: This will block unselected methods.', 'security-header-generator' ), 311 311 'options' => array( 312 312 'GET' => __( 'GET', 'security-header-generator' ), … … 349 349 'type' => 'text', 350 350 'title' => __( 'Origin', 'security-header-generator' ), 351 'desc' => __( 'Set the allowed access origin here. Can either be an asterisk: <code>*</code>, or a FQDN URL: <code>https://example.com</code><br /> <strong>NOTE: </strong>If nothing is put in here, we will default to <code>*</code>', 'security-header-generator' ),351 'desc' => __( 'Set the allowed access origin here. Can either be an asterisk: <code>*</code>, or a FQDN URL: <code>https://example.com</code><br />NOTE: If nothing is put in here, we will default to <code>*</code>', 'security-header-generator' ), 352 352 'dependency' => array( 'include_acao', '==', true ), 353 353 ), … … 550 550 'id' => 'auth_un', 551 551 'type' => 'text', 552 'title' => __( ' <strong>Basic Auth Username</strong>', 'security-header-generator' ),552 'title' => __( 'Basic Auth Username', 'security-header-generator' ), 553 553 'desc' => __( 'Enter your Basic Auth Username, if your site has this protection. (aka: htaccess protection, or htpasswd', 'security-header-generator' ), 554 554 'dependency' => array( 'generate_csp', '==', true ), … … 562 562 'type' => 'text', 563 563 'attributes' => array( 'type' => 'password', 'autocomplete' => 'new-password' ), 564 'title' => __( ' <strong>Basic Auth Password</strong>', 'security-header-generator' ),564 'title' => __( 'Basic Auth Password', 'security-header-generator' ), 565 565 'desc' => __( 'Enter your Basic Auth Password, if your site has this protection. (aka: htaccess protection, or htpasswd', 'security-header-generator' ), 566 566 'dependency' => array( 'generate_csp', '==', true ), … … 699 699 'type' => 'switcher', 700 700 'title' => __( 'Do you want to configure a Feature Policy (aka Permissions-Policy)?', 'security-header-generator' ), 701 'desc' => __( 'Setting this will add another header to configure browser and frame permissions. See here for more information: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy" target="_blank">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy</a><br /><br /> <strong>NOTE: </strong>Some of these features are not implemented for all browsers, and/or could be experimental. Please read through that information and decide what features you need, and what audiences you need to apply to.', 'security-header-generator' ),701 'desc' => __( 'Setting this will add another header to configure browser and frame permissions. See here for more information: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy" target="_blank">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy</a><br /><br />NOTE: Some of these features are not implemented for all browsers, and/or could be experimental. Please read through that information and decide what features you need, and what audiences you need to apply to.', 'security-header-generator' ), 702 702 'default' => false, 703 703 ),
Note: See TracChangeset
for help on using the changeset viewer.