Skip to content

About javascript: void (0); #2887

Description

@muh-ramadhan

how to handle it?
in codeigniter version 3 for example I use
<a href="#" data-menu="menu-main"></a>
it functions as it should not refresh the page.
But in codeigniter version 4 lines of code href = "#" refreshes the page. so I changed it to
<a href="javascript"void(0)" data-menu="menu-main"></a> to function without having to refresh the page.

But the problem is javascript: void (0); violates HTTPS Content Security Policy on CSP-enabled (Content Security Policy).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions