Select to view content in your preferred language

{error: {code: Forbidden,message:"Proxy is being used from an unsupported referer: "}}

4443
5
12-12-2014 10:23 AM
WalterDziuba
Deactivated User

Am attempting to use a secure service and the API to pass credentials to my web map, but end up getting the following error after all the configuration is completed:

{error: {code: Forbidden,message:"Proxy is being used from an unsupported referer: "}}

Here are my steps:

1. downloaded the lastest proxy from GitHub

2. downloaded the public information template from GitHub

3. Configured the default.js file with my webmap id and oauthappid from my registered web map

4. Set the proxyurl in the default.js file to my local root directory

5. Added the urlUtils.addProxyRule in my template.js file to be the following:

urlUtils.addProxyRule({

  urlPrefix: "services.arcgis.com",

  proxyUrl: "/PublicInfoProxy/proxy.ashx"

  });

6. Added my allowReferers="http://localhost/DayTwo,https://localhost/DayTwo" and set mustMatch="false"

7. Added the appid and app secret to the lines under serverUrl in my proxy.config file with the matchAll="true"

8. Changed the web.config file to reflect the logging abilities of the proxy.ie. initializeData="c:\tmp......

When I run the app, and watch the network activities using the Chrome developer tools, it gets to a line and just times out.

When I input the Request Url that's in the network tab, into a brower, I get the error I've mentioned above.

Also, although it seems that the proxy page is being accessed, no log file is being produced.

I saw only one other post regarding this error, but I did not understand the solution.

Any assistance would be appreciated.....Walter

0 Kudos
5 Replies
BillSpiking__GISP
Frequent Contributor

Hi Walter,

I know your post above is from back in Dec of '14, but I was wondering if you had any luck deploying the pi map with a proxy.  I've deployed a wab using a proxy numerous times, but I'm having a heck of time getting it to work with pi map.

Any help would be greatly appreciated.

Thank you,

Bill

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

William,

   What is a "pi map"?

Have you seen this post:

Internal ONLY Web Map Sharing Issues

0 Kudos
BillSpiking__GISP
Frequent Contributor

I apologize Robert.  Public Information Map.

Esri/public-information-map-template-js · GitHub

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

OK, I don't have any experience with that.

0 Kudos
BillSpiking__GISP
Frequent Contributor

Well....why not?

Thank you for checking in Robert.  You're always very helpful!

0 Kudos