Workflow Designer won't list my saved workflows in ArcGIS Online due to CORS policy
Hi,
It seems started from last couple of days, SaaS version of Workflow Designer can't list my saved workflow in AGO. I noticed in Chrome console the following CORS error. I have tried add apps.geocortex.com to our AGO allowed Origins but it didn't fix the problem. Any suggestions? thank you
@Latitude Development? @Geocortex Support?
Access to XMLHttpRequest at 'https://eica.maps.arcgis.com/sharing/rest/search?f=pjson' from origin 'https://apps.geocortex.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Access to fetch at 'https://xxx.maps.arcgis.com/sharing/rest/search?f=json&q=(owner%3Ajzhangeica%20typekeywords%3A(%22Geocortex%20Workflow%22))&num=100&start=0&sortField=title&token=9kEulEA29d5fqkRGsbkQpyVgch5T8GeEG6uXhU-DcYR8fBZIkR0Ym0RMCJxhcKH4fLOeRy4Lcs-4wu6G9KrjI88k6_Ra_dOtTTQr-HI2ASkHy0DaVj_pfVwO26wa7jFmZ8PHRE7Wq0P2WXshxp7v6k92bGaxOjpX8NNwSzpBW3OAsudM5nEUF4tZPqSkqmxIptHDN3oUhPKBJdgyV6TzBW4DkmCA3REt40zFhsVW3Oc7PRa4TOxJq_uJHDUtjfy1' from origin 'https://apps.geocortex.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
-
Hi Jack,
It sounds like you are using ArcGIS Online with cloud Workflow. If this is the case, then you'll need to configure the Allow Origins setting in ArcGIS Online and add "apps.geocortex.com" as an allowed origin.
Thanks,
Stefan
0 -
hi Stefan, yes I'm using the SaaS version Workflow with Workflows saved in ArcGIS Online, and I've been using it since a year ago, Interesting it just became an issue couple of days ago. As mentioned in my original post, I have already tried add apps.geocortex.com as allowed origin in our organisational AGO origins settings, but it didn't solve the problem.
0 -
Hi Jack,
A couple of follow-up questions:
- Do you currently have any other URLs listed in the Allowed Origins settings?
- Do you have any other apps that use AGOL and are they still functioning as expected?
Thanks, Stefan
0 -
hi @Stefan Schweigert? , yes we have another URL listed in the allowed Origins and seems working fine. At the moment I have to remove all entries in the Allowed Origins to make AGO open to CORS requests from any domain, in order to have the saved workflows show up in Workflow Designer. I'm wondering if you're able to replicate the same issue over your end? Thanks.
0 -
Hi Jack,
Is this issue still occurring for you? We are not able to reproduce on our end.
Thanks, Stefan
0 -
Hi Stefan,
Just tried again, unfortunately I still have the same issue. As long as I added any domain, including apps.geocortex.com?, to Allow Origins in our Organisational AGO then the SaaS Workflow Designer can't retrieve my workflows.
0 -
Hi @Jack Zhang? if this continues to be an issue I'd suggest emailing us at support@geocortex.com to open a support case. We can do a screen share and look to identify a solution or file as a bug.
0 -
Hi Jack,
We've been testing this locally and we found we had to add the full "https://apps.geocortex.com" to the allow Allow Origins section, not just "apps.geocortex.com". This is contrary to the ArcGIS docs, but seems to work.
--Ryan
0 -
Thanks a lot Ryan! it works! I'll probably send feedback to ESRI about their documentation. ? much appreciated!😃
0
Please sign in to leave a comment.
Comments
9 comments