Skip to content

Use EncodeUri() if part of the URL path or EncodeUriComponent() if used as a URL parameter #3

Description

@philpott

const url = 'https://cmp' + env + '.osano.com/' + customerId + '/' + ccId + '/osano.js';

When reviewing your template we've noticed that it is using parameters to build a url. It's a best practice to use EncodeUri() if part of the URL path or EncodeUriComponent() if used as a URL parameter.

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