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

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. #868

Closed
Azzamean opened this issue Mar 1, 2023 · 0 comments

Comments

@Azzamean
Copy link

Azzamean commented Mar 1, 2023

Hello,

I set up an example site https://omfp.dev-lfprojects3.linuxfoundation.org/for-github-issue/ to review.

We are using front-end to access the landscape and we encounter a CORS issues. There are two URLs we need to use.

  1. https://landscape.openmainframeproject.org/data/items.json - WORKS
  2. https://landscape.openmainframeproject.org/api/items?project=hosted - DOES NOT WORK

I tested a curl to see the difference and see the second one is missing:

access-control-allow-origin: *

Which the first one, which works, has in its response.

I assume this hasn't been an issue before because other systems are not using the client and using the server to access these. But we would like to access via the client. Essentially we just need the header added in so we can use this on Linux Foundation Projects sites.
CORS

@Azzamean Azzamean closed this as completed Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant