Comments (1)
If every request you are defining uses the same base URL, you could do this:
amplify.subscribe( "request.ajax.preprocess", function( defnSettings, settings, ajaxSettings ) {
ajaxSettings.url = "http://baseurl.com/" + ajaxSettings.url;
});
If only some function that way, you could add some tests for the existing URL before modifying it.
Its not as efficient as setting it ahead of time, but it would provide the flexibility you want. I'll leave this feature request open in the mean time to see if it is something we could add to the amplify.
from amplify.
Related Issues (20)
- Amplify 1.1.2 Uncaught TypeError in new Chrome
- Race condition in core.js publish method HOT 5
- Add browser support documentation [was: "IE8 support"] HOT 1
- amplify.js incompatible with FormData
- losing the data in local storage that I set on a HTTP page when I move to a HTTPS page HOT 1
- Subscribe to event groups (namespaces)
- is amplify still being developed? HOT 5
- null being passed to handleResponse on error instead of _xhr HOT 1
- Any plan to support chrome.storage in the future?
- Not an issue, a suggestion... for pubsub HOT 1
- support for commonjs HOT 1
- amplify.store() examples in the docs is not working HOT 1
- ajax request types are taking longer than default jquery ajax calls
- need clear all subscription method
- Publish core as a separate module
- Offline DB Support HOT 1
- userData domain level persistance not working HOT 1
- Publish/Subscribe across iframes HOT 4
- BUG: amplify.request on IE 9 not work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify.