Skip to content

Adding a middleware to rewrite URL of XHR requests #1812

@seme1

Description

@seme1

This is a (multiple allowed):

  • [] bug
  • enhancement
  • feature-discussion (RFC)

I need to capture all URL (before being loaded) and rewrite them in order to fix an issue I have with cordova plugin. The issue (and possible fix) is described here:
nordnet/cordova-hot-code-push#264 (comment)

What's the best way for achieving the above ? Perhaps by adding a middleware for achieving the above ? If so, how ?
The format of the URLs will change from something like this file://myurl/page.html to http:// localhost:8080/application/binary/APP-ID/myurl/page.html (This is just an example, exact format is in the issue)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions