Skip to content

CORS issue with API of jsonplaceholders #3

@Vortilion

Description

@Vortilion

Hi,

it seems that defining the API to the jsonplaceholder-URL you do in Lab 5 via

var API = '//jsonplaceholder.typicode.com/todos/';

Will cause CORS errors in chrome when doing the PUT-Request. If I change it to

var API = 'https://jsonplaceholder.typicode.com/todos/';

it works perfectly. It still does the OPTIONS-Request before PUT (which it doesn't in your video for some reason, I think it should, because it is always triggered when doing sth. other than a GET, HEAD or POST Request), but it works. Just as a note.

Metadata

Metadata

Assignees

No one assigned

    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