Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Enable CORS for Watson api endpointsΒ #112

@Tumetsu

Description

@Tumetsu

Hi,

I'm developing as an exercise project a React progressive web app which would let me to input Watson data with my mobile phone by web ui. I'd like to integrate with the Crick so that I could sync my devices.

By looking the API documentation, it looks like only way to push and pull time frames can be done with watson endpoints. However, if I try to access these apis from a web page, I'll get error

Failed to load https://api.crick.io/watson/frames: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.

My idea is to create a front end app without backend implementation. Would it be possible to make Watson endpoints accessible from web apps or do you think this poses unacceptable security risk?

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