Skip to content
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 opened this issue Jun 13, 2019 · 0 comments
Open

Vue Resource Always throwing in error callback in firefox #728

rishabhgoel9797 opened this issue Jun 13, 2019 · 0 comments

Comments

@rishabhgoel9797
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant