I wish to test the full functionality of a particular JavaScript component, which makes a cross-origin ajax call. I am making use of PhantomJS to perform testing without a browser. Is there a way I can mock the origin header in this framework, so that the ajax call succeeds?
Aucun commentaire:
Enregistrer un commentaire