Skip to content

Data extension service not using CORS #3672

@gitonthescene

Description

@gitonthescene

To Reproduce

Steps to reproduce the behavior:

  1. Implement a data reconciliation service with the data extension service specified in the service manifest.
  2. Open the browser web console.
  3. Finally, try to "Add columns from reconciled values"

Current Results

Currently you get back a blank form with no properties for selection. I think given the bug from this issue it probably should have shown an error to the user. But when you look in the web console, you can see that the request was using JSONP.

GET http://127.0.0.1:5000/properties?type=&callback=jQuery1111022504064285953862_1613364041041&_=1613364041042

Expected Behavior

Similar to reconciliation, I would have expected it to try to use CORS first and fallback to JSONP.

Screenshots

Versions

  • Operating System:
  • Browser Version:
  • JRE or JDK Version:
  • OpenRefine:

Datasets

Additional context

I can provide a sample service demonstrating this bug if you like. Please let me know. I think the code making this request is here. It looks like recon calls ajax directly rather than with the jQuery shorthand.

For clarity, this is using OpenRefine 3.4.1 on a Mac with FF 84.0.1.

[EDIT: You can see the use of JSONP from the web console using the Wikidata reconciliation service, so no need to implement your own service.]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugIssues related to software defects or unexpected behavior, which require resolution.reconciliationRelated to the reconciliation operations and other features

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions