build-your-own-radar icon indicating copy to clipboard operation
build-your-own-radar copied to clipboard

Origin is not allowed by Access-Control-Allow-Origin.

Open mschmid opened this issue 6 years ago • 14 comments

Hi, I have massive problems with the instance running at https://radar.thoughtworks.com. Does anybody have the same problems? No matter if I use a google sheet or provide a CSV file on my own web server, every time this error appears in the java script console: [Error] Origin https://radar.thoughtworks.com is not allowed by Access-Control-Allow-Origin. [Error] Failed to load resource: Origin https://radar.thoughtworks.com is not allowed by Access-Control-Allow-Origin. (radar.csv, line 0) [Error] Fetch API cannot load [...]/radar.csv. Origin https://radar.thoughtworks.com is not allowed by Access-Control-Allow-Origin.

mschmid avatar Oct 29 '17 21:10 mschmid

Hi @mschmid, Thanks for letting us know. We are currently working on this will update soon once done.

SARAN-thala avatar Oct 30 '17 05:10 SARAN-thala

Hi @mschmid

Can you tell us, how you are using the google sheets option?

When we tried to create a new Google sheet and use it, it seemed to work perfectly. So can you help us out with the following information

  1. What URL are you entering in the text box?
  2. Before creating the radar, did you publish the Google sheet using the 'Publish to the web' option?

Thanks, Naji/Saran

mohamednajiullah avatar Oct 30 '17 06:10 mohamednajiullah

Thank both of you for the fast answer. The given example works, if I paste the URL https://docs.google.com/spreadsheets/d/1waDG0_W3-yNiAaUfxcZhTKvl7AUCgXwQw8mdPjCz86U/edit#gid=0 on the website https://radar.thoughtworks.com the radar appears. If however I copy the example sheet within google docs to be able to modify it and publish it: https://docs.google.com/spreadsheets/d/1CBKf8sCxbxg9RHJNFXd7o_au-9jzG96wi_QdFFbEqkk/edit#gid=0 the following message appears:

Oops! We can’t find the Google Sheet you’ve entered. Can you check the URL? Please check FAQs for possible solutions.

mschmid avatar Nov 01 '17 13:11 mschmid

Hi @mohamednajiullah & @SARAN-thala, any news on that? Can you reproduce the error?

mschmid avatar Nov 06 '17 14:11 mschmid

Hi @mschmid

I also tried your scenario, this is my copy example sheet within google docs to be able to modify it and published it https://docs.google.com/spreadsheets/d/184npbFgA4dd5e28Inhm38KMk8HvcEEfpdTdiopkEyBc/edit#gid=0. If I paste this URL in https://radar.thoughtworks.com, the radar renders perfectly.

I would suggest to you, try with a new instance. This doc might help you.

SARAN-thala avatar Nov 06 '17 15:11 SARAN-thala

@mschmid your sheet is not "Published to the web".

https://spreadsheets.google.com/feeds/worksheets/1CBKf8sCxbxg9RHJNFXd7o_au-9jzG96wi_QdFFbEqkk/public/basic?alt=json&pli=1

screen shot 2017-11-06 at 9 04 09 pm

Please refer Publish section of the doc @SARAN-thala mentioned.

arunvelsriram avatar Nov 06 '17 15:11 arunvelsriram

FYI https://spreadsheets.google.com/feeds/worksheets returns 403 when the sheet is not "Published to the web".

It will be better if we handle this scenario gracefully by showing an appropriate message to users and direct them to this doc.

arunvelsriram avatar Nov 06 '17 15:11 arunvelsriram

@arunvelsriram Thank you vey much for the link with the spreadsheets - subdomain. This made the error visible. I published the document to the web, but I used another dialog (see screenshot) than the one that is described in the documentation. bildschirmfoto 2017-11-06 um 19 01 45

With the publishing via the right dialog it works bildschirmfoto 2017-11-06 um 19 05 59

I was not aware that google has to different ways to publish a document into the public.

Thank you very much, now I am able to use this tool also!

mschmid avatar Nov 06 '17 18:11 mschmid

Thank you @arunvelsriram . Considering this issue is resolved, I'll close this thread.

mohamednajiullah avatar Nov 07 '17 04:11 mohamednajiullah

Reopening this issue. We'll resolve this once we've gracefully handled this error.

mohamednajiullah avatar Nov 07 '17 07:11 mohamednajiullah

With the publishing via the right dialog it works

Hi @mschmid

~~I have the same issue you had...~~ ~~A question to your solution~~: ~~How did you reach the~~ ~~right dialog~~~~?~~ 😕

Solved! Thank you @mschmid! I'm using German language and I thought the menu point to choose is Datei.Freigeben... but it's not. Datei.Im Web veröffentlichen... matches to "Publish to the web..." and that's what you have to use according https://www.thoughtworks.com/radar/how-to-byor! :blush:

jcsonder avatar Feb 03 '19 05:02 jcsonder

Reopening this issue. We'll resolve this once we've gracefully handled this error.

Is this still on the, ahum, radar?

jawn avatar Mar 22 '19 14:03 jawn

@mohamednajiullah is this resolved? If not, I can try to make a PR.

arunvelsriram avatar Jul 08 '19 18:07 arunvelsriram

Workaround: enable it with https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf/related?hl=en . A way simpler solution would be #231 .

sglebs avatar Dec 28 '21 14:12 sglebs

Closing as stale. Please reopen if it's not resolved.

marisahoenig avatar Jul 21 '23 21:07 marisahoenig