Class: Caman.IO
Defined in: | src/core/io.coffee |
Overview
Various I/O based operations
Class Method Summary
- + (Boolean) isRemote(img) Is the given URL remote? If a cross-origin setting is set, we assume you have CORS properly configured.
- + (Boolean) corsEnabled(img) Given an image, we check to see if a CORS policy has been defined.
-
+ (Boolean) isURLRemote(url)
Does the given URL exist on a different domain than the current one? This is done by comparing the URL to
document.domain
. - + (String) remoteCheck(src) Checks to see if the URL is remote, and if there is a proxy defined, it
- + (String) proxyUrl(src) Given a URL, get the proxy URL for it.
- + (String) useProxy(lang) Shortcut for using one of the bundled proxies.
Class Method Details
+ (Boolean) isRemote(img)
Is the given URL remote? If a cross-origin setting is set, we assume you have CORS properly configured.
+ (Boolean) corsEnabled(img)
Given an image, we check to see if a CORS policy has been defined.
+ (Boolean) isURLRemote(url)
Does the given URL exist on a different domain than the current one?
This is done by comparing the URL to document.domain
.
+ (String) remoteCheck(src)
Checks to see if the URL is remote, and if there is a proxy defined, it
+ (String) proxyUrl(src)
Given a URL, get the proxy URL for it.
+ (String) useProxy(lang)
Shortcut for using one of the bundled proxies.