Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Vue Resource Always throwing in error callback in firefox #728

Open
@rishabhgoel9797

Description

getDataViaApi (path, callback, errorHandler, headerParams) { let headerObject = { 'Cache-Control': 'no-cache' } Vue.http.get(config.getApiPath(path), { headers: typeof headerParams !== 'undefined' ? Object.assign(headerObject, headerParams) : headerObject }).then( response => callback(response), error => { if (typeof errorHandler === 'function') errorHandler(error) } ) }
i am using this code for get request, works fine in chrome and safari but throws in 'error' in firefox. Please help. Its urgent

Activity

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

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