Home Forums WoodMart support forum Website not working after adding this code

Website not working after adding this code

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #534525

    hardik119955
    Participant

    <IfModule mod_headers.c>
    Header always set Content-Security-Policy “script-src ‘self’; object-src ‘none’; base-uri ‘self’; frame-src ‘self’;”
    </IfModule>

    I’m adding this security header in .htaccces file after that the product are not adding to cart , also product attributes and variations are not working on product page as well side cart display plain white page .

    What to do please guide

    #534792

    Hung Pham
    Keymaster

    Hi hardik119955,

    Thanks for reaching to us.

    Make sure you added correctly code.

    I kindly request you to conduct a check by activating the default WordPress Theme, such as Storefront or Twenty Twenty-Three (Appearance > Themes) and keep WooCommerce plugins activated. This is to ascertain whether the issue you are experiencing is due to our theme or not.

    If the problem persists even with the default WordPress theme, it would suggest that WoodMart theme is not the cause of the issues.

    Regards,

    #534801

    hardik119955
    Participant

    Dear can you please give me a best code for security header (Content security policy) which is best suit for your theme and my website it will be very helpful for me.

    #535029

    Hung Pham
    Keymaster

    Hi hardik119955,

    Please refer to this article for more details https://www.wpbeginner.com/beginners-guide/how-to-add-http-security-headers-in-wordpress/

    Regards,

    #535684

    hardik119955
    Participant

    There is no guide or helpful content on above link for the issue or solution I’m looking for I am looking best solution for this particular header – “Content-Security-Policy” please guide accordingly hope you understand dear….

    Thank You

    #535962

    Hung Pham
    Keymaster

    Hi hardik119955,

    You need to ask this question to the server support, since this setting is not related to the theme, unfortunately.

    Regards,

Viewing 6 posts - 1 through 6 (of 6 total)