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

CORS blocking requests to the API #18

Open
arcogabbo opened this issue Sep 25, 2021 · 1 comment
Open

CORS blocking requests to the API #18

arcogabbo opened this issue Sep 25, 2021 · 1 comment
Assignees

Comments

@arcogabbo
Copy link

Requests on every endpoint of the API are blocked from the browser (currently using Chrome 93).

Example:

$.ajax({
  url:'https://api.opensource.org/licenses/',
  method:'get',
  success:(res)=>{
    console.log(res)
  },
  error:(xhr,s,err)=>{
    console.error(err)
  }
})

Output:

Access to XMLHttpRequest at 'https://api.opensource.org/licenses/' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
@webmink
Copy link
Member

webmink commented Sep 25, 2021

Sounds like something @paultag should look at.

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

3 participants