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

_delete methods against entities with non generated IDs can cause issues #61

Open
whistlinjoe opened this issue Sep 24, 2019 · 1 comment
Labels

Comments

@whistlinjoe
Copy link
Contributor

whistlinjoe commented Sep 24, 2019

Created a competency with the id: "https://credentialengineregistry.org/navy/resources/ce-72058167-4666-4e1e-b3db-8fa342a39f3e"

Running the following script generated a CORS issue:

var c = EcCompetency.getBlocking("https://credentialengineregistry.org/navy/resources/ce-72058167-4666-4e1e-b3db-8fa342a39f3e");

EcRepository._delete(c, null, function(p1) {console.log("Item deleted...");});

Access to XMLHttpRequest at 'https://credentialengineregistry.org/navy/resources/ce-72058167-4666-4e1e-b3db-8fa342a39f3e' from origin 'http://localhost:63342' has been blocked by CORS policy

@Lomilar Lomilar added the bug label Oct 9, 2019
@Lomilar
Copy link
Contributor

Lomilar commented Oct 29, 2019

In this case, you are working with an aliased piece of data. The repository you're working on is not credentialengineregistry.org.

As such, we need to delete the data that is stored in a specific repository.

That is done via:

repo.deleteRegistered(c,success,failure);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants