[mapguide-users] An error occurred during startup - "Failed to Fetch"

Shane Martin shane.martin at ingersoll.ca
Sat Aug 6 09:21:06 PDT 2022


Jackie you're a genius!

The chrome dev tools pinpointed the error.  "Redirect has been blocked by
CORS policy: No 'Access-Control-Allow-Origin' header"

The issue is because the Same Origin Policy is preventing the fetch
response from being received due to the originating/receiving domains being
different.

The fix was to add a "Access-Control-Allow-Origin: *" header.

Thanks again for pointing me in the right direction.  I often forget about
the chrome dev tools.


Shane Martin
Manager of Information Technology
Town Of Ingersoll
519-485-0120 ext. 6264

On Fri., Aug. 5, 2022, 3:40 p.m. Jackie Ng, <jumpinjackie at gmail.com> wrote:

> Assuming you are referring to the mapguide-react-layout viewer (that
> sounds a lot like an error message this viewer will throw), then the best
> course of action is to open your browser developer tools (general shortcut
> key is F12) and look for failed requests in the network tab.
>
> Given this is a fetch error during startup, I suspect it must be a failure
> in one of the requests to:
>
>    - Fetch the WebLayout or ApplicationDefiniton resource
>    - Create the runtime map from the Map Definition from the WebLayout or
>    ApplicationDefinition fetched above.
>
> But looking at the failed requests in the network tab in the browser dev
> tools will give the definitive answer on what is the failing request.
>
> Hope that helps.
>
> - Jackie
>
> You wrote:
>
> Are users are receiving a "An error occurred during startup - Failed to
>
> Fetch" error when opening the mapguide viewer in a web browser.  Anyone
>
> know what this cause of this error would be? or what log files may shed
>
> some light on it?
>
> Thanks.
>
> *Shane Martin*
>
> Manager of Information Technology
>
> Town Of Ingersoll
>
> 519-485-0120 ext. 6264
>
>
> --
> *Please Note: I no longer create new posts or post replies to any OSGeo
> mailing list through nabble. As a result, you most likely won't see this
> message appear on nabble's view of any OSGeo mailing list and may only see
> this message through mailing list archives or depending on your mailing
> list subscription settings, through daily message digests or automated
> notifications from the mailing lists.*
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20220806/7d4036b5/attachment.htm>


More information about the mapguide-users mailing list