Skip to content
This repository was archived by the owner on Apr 26, 2023. It is now read-only.

Commit c84ca22

Browse files
committed
Restore repo back to most recent status after bot deleted master branch.
1 parent a9b6e33 commit c84ca22

File tree

2 files changed

+5
-31
lines changed

2 files changed

+5
-31
lines changed

DotNet/proxy.ashx

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public class proxy : IHttpHandler {
157157
String checkValidUri = new UriBuilder(requestReferer.StartsWith("//") ? requestReferer.Substring(requestReferer.IndexOf("//") + 2) : requestReferer).Host;
158158

159159
}
160-
catch (Exception e)
160+
catch (Exception)
161161
{
162162
log(TraceLevel.Warning, "Proxy is being used from an invalid referer: " + context.Request.Headers["referer"]);
163163
sendErrorResponse(context.Response, "Error verifying referer. ", "403 - Forbidden: Access is denied.", System.Net.HttpStatusCode.Forbidden);

README.md

+4-30
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# Best practices
22

3-
There are several recommended solutions to use instead of your own resource-proxy:
3+
We don't recommend using this resource proxy. It is not being maintained and there's been no active development for many years. There are many better solutions.
44

55
* Enable [CORS](http://enable-cors.org/server.html) on the non-CORS enabled web server.
6+
* Use [API keys](https://web.archive.org/web/20210506231115/https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/) to use services and access private content.
67
* Configure your security settings in [ArcGIS Online](https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm) or [ArcGIS Enterprise](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-security.htm).
78
* Access secure services [using ArcGIS Online](https://doc.arcgis.com/en/arcgis-online/reference/arcgis-server-services.htm#ESRI_SECTION1_FEB0DF92DA064B6A970DFB59A18AA4C2) to store your username/password credentials.
89

9-
### Developer tools for working with CORS
10-
11-
For testing and development when working with CORS-enabled services:
12-
13-
* There are Chrome extensions available through the [Chrome web store](https://chrome.google.com/webstore/search/cors?_category=extensions).
14-
* Some browsers may allow you to temporarily modify the enforcement of the `same-origin` policy. For example, in Chrome you can set the `--disable-web-security` command-line flag. More information is available in [Run Chromium with flags](https://www.chromium.org/developers/how-tos/run-chromium-with-flags).
10+
**Note:** this resource proxy may only be used with ArcGIS Enterprise.
1511

1612
# Proxy files for DotNet, Java and PHP
1713

@@ -45,17 +41,6 @@ Ensure that you follow the [Terms & Conditions](https://developers.arcgis.com/te
4541
* proxy.config
4642
* README.md
4743

48-
## Troubleshooting
49-
50-
* Watch the web requests being handled by the proxy to ensure that the proxy and the web resource locations are correct and properly configured in the application. Use something like [Fiddler](http://www.telerik.com/fiddler) or developer tools like [Network panel in Chrome Developer Tools](https://developer.chrome.com/devtools/docs/network#network-panel-overview).
51-
52-
## Product Resources
53-
54-
* [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/latest/guide/proxies/)
55-
* [Web AppBuilder for ArcGIS (Developer Edition)](https://developers.arcgis.com/web-appbuilder/guide/use-proxy.htm)
56-
* [Esri Leaflet](https://developers.arcgis.com/authentication/working-with-proxies/#esri-leaflet)
57-
* [Setting up a Proxy blog](http://blogs.esri.com/esri/supportcenter/2015/04/07/setting-up-a-proxy)
58-
5944
## Proxy Configuration Settings
6045

6146
All three proxies respect the XML configuration properties listed below.
@@ -109,18 +94,7 @@ Example of a tag for a resource which does not require authentication
10994

11095
## Issues
11196

112-
Found a bug or want to request a new feature? Check out previously logged [Issues](https://github.com/Esri/resource-proxy/issues) and/or our [FAQ](FAQ.md). If you don't see what you're looking for, feel free to submit a [new issue](https://github.com/Esri/resource-proxy/issues/new).
113-
114-
## Contributing
115-
116-
Esri welcomes [contributions](CONTRIBUTING.md) from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing).
117-
118-
## Release steps (for maintainers)
119-
120-
0. run `npm install gh-release` inside the directory which houses the repository (this only needs to be done once)
121-
1. bump proxy version numbers and changelog
122-
2. commit your changes `git commit -m ':package: 1.x.x'`
123-
3. run `gh-release` at the command line. this will create a tag using the current SHA and use whats in the changelog in the release notes
97+
Found a bug? Check out previously logged [Issues](https://github.com/Esri/resource-proxy/issues) and/or our [FAQ](FAQ.md). If you don't see what you're looking for, feel free to submit a [new issue](https://github.com/Esri/resource-proxy/issues/new).
12498

12599
## License
126100

0 commit comments

Comments
 (0)