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

Failed to load strapi blog post on production admin dashboard #1766

Closed
ghufr opened this issue Aug 18, 2018 · 11 comments
Closed

Failed to load strapi blog post on production admin dashboard #1766

ghufr opened this issue Aug 18, 2018 · 11 comments
Labels
issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:admin Source is core/admin package status: confirmed Confirmed by a Strapi Team member or multiple community members

Comments

@ghufr
Copy link

ghufr commented Aug 18, 2018

Informations

  • Node.js version: 10.8.0
  • npm version: 6.4.0
  • Strapi version: 3.0.0-alpha.13.1
  • Database: Mongo
  • Operating system: Ubuntu 18.04.1

What is the current behavior?
Blog post won't load
2018_08_18_10_01_06_window

Steps to reproduce the problem
Deploy strapi and use domain

What is the expected behavior?
Blog post loaded

Suggested solutions

  • Delete Blog post on admin dashboard
  • Enable CORS
@lauriejim lauriejim self-assigned this Aug 20, 2018
@lauriejim lauriejim added issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve status: confirmed Confirmed by a Strapi Team member or multiple community members labels Aug 20, 2018
@lauriejim
Copy link
Contributor

Hello @ghufr ! Thank you for this report, will try to fix it.

@lauriejim lauriejim changed the title Failed to load strapi blog post on admin dashboard Failed to load strapi blog post on production admin dashboard Dec 2, 2018
@lauriejim lauriejim added this to 🕰Waiting for classification in 🥘Cooking via automation Jan 15, 2019
@lauriejim lauriejim moved this from 🕰Waiting for classification to ⚡️Fast fix in 🥘Cooking Jan 15, 2019
@lauriejim lauriejim removed this from ⚡️Fast fix in 🥘Cooking May 9, 2019
@lauriejim lauriejim removed their assignment Jul 10, 2019
@amartincolby
Copy link

What's the status of this? It's still listed as an open issue and I'm encountering the problem in Beta.

@cadavre
Copy link

cadavre commented Jan 8, 2020

Same problem here, still in 2020. It's kind of a ridiculous because I cannot create any more admin accounts now. :)

To point this:

This is due to CORS set on strapi.io domain!

@derrickmehaffy
Copy link
Member

@cadavre you are testing with the latest beta right? (beta.18.4)?

@cadavre
Copy link

cadavre commented Jan 8, 2020

Yes, beta.18.4. In fact I cannot reach any CMS menu now...

Any workaround?

How frustrating is that whole CMS fails because of feature called "get news from blog". Argh.

@derrickmehaffy
Copy link
Member

Can you dump a screenshot of your network tab errors?

@cadavre
Copy link

cadavre commented Jan 8, 2020

Access to fetch at 'https://blog.strapi.io/ghost/api/v0.1/posts/?client_id=ghost-frontend&client_secret=1f260788b4ec&limit=2' from origin 'xxxx' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: 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.

@derrickmehaffy
Copy link
Member

That CORS error shouldn't prevent the admin from loading 🤔

@cadavre
Copy link

cadavre commented Jan 8, 2020

I'll try to investigate. BTW Can't simply remove this feature? Not really sure its that useful.

@derrickmehaffy
Copy link
Member

It's embedded into the strapi-admin package I believe, you can customize that package via the over-ride system. https://strapi.io/documentation/3.0.0-beta.x/admin-panel/customization.html (there won't be a direct guide to remove that but the general flow of how you tweak that package is there)

@lauriejim lauriejim added the source: core:admin Source is core/admin package label Feb 11, 2020
@asherccohen
Copy link

asherccohen commented May 1, 2020

Hi, is this still a thing?

Does this mean the user cookies are not stored correctly therefore I'm logging in but can't fetch posts?

soupette added a commit that referenced this issue May 27, 2020
Signed-off-by: soupette <cyril.lpz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:admin Source is core/admin package status: confirmed Confirmed by a Strapi Team member or multiple community members
Projects
None yet
Development

No branches or pull requests

6 participants