Skip to content
This repository was archived by the owner on Jun 9, 2026. It is now read-only.
This repository was archived by the owner on Jun 9, 2026. It is now read-only.

CORS blocking requests to the API #18

Description

@arcogabbo

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions