Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Map API is failing in create facility form of deploy preview's #8684

Closed
nihal467 opened this issue Oct 1, 2024 · 4 comments
Closed

Comments

@nihal467
Copy link
Member

nihal467 commented Oct 1, 2024

Describe the bug

The Google map API is failing in the create facility form of netlify & Cloudflare deploy preview

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://a0e1bc19.care-fe.pages.dev/facility/create
  2. Click on the map icon on the bottom of the page
  3. See error

Expected behavior

the google map API should work properly in the facility create form

Screenshots

image

@nihal467 nihal467 changed the title Google Map API is failing in create facility form of netlify & cloudflare preview Google Map API is failing in create facility form of deploy preview's Oct 1, 2024
@nihal467 nihal467 added this to Care Oct 1, 2024
@github-project-automation github-project-automation bot moved this to Triage in Care Oct 1, 2024
@anandaashish74711
Copy link

Hi @nihal467,

I'd like to help resolve the issue with the Google Map API in the facility creation form for the Netlify and Cloudflare deploy previews. Could you please assign this issue to me?

@bodhish bodhish self-assigned this Oct 2, 2024
@bodhish
Copy link
Member

bodhish commented Oct 2, 2024

@tellmeY18 check this out

@bodhish bodhish removed their assignment Oct 2, 2024
@rithviknishad rithviknishad moved this from Triage to Up Next in Care Oct 3, 2024
@NitinPSingh
Copy link
Contributor

the issue might be the url is not added in list of allowed referrers

RefererNotAllowedMapError
The current URL loading the Maps JavaScript API has not been added to the list of allowed referrers. Please check the referrer settings of your API key in the Cloud Console.

https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error

@tellmeY18
Copy link
Member

Have the Origin policy and have enabled necessary APIs to fix the issue. Current deploy previews (Cloudflare Pages and Netlify) are loading the map in the create facility Form. However Mobile devices are experiencing trouble loading the resource. Another Issue was filed #8723 to find and solve the problem.

@github-project-automation github-project-automation bot moved this from Up Next to Done in Care Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

6 participants