Skip to content

Enable Pure Converter #2

@avandeursen

Description

@avandeursen

See non-working code in publications.md

## Publication List

<div id="publicationlist"></div>

<script language="javascript">

  var purexml_SERG = "https://purexml.ewi.tudelft.nl/convert/tu/research-id/ai4fintech";
  var page_nr = location.search;

  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
      document.getElementById("publicationlist").innerHTML = this.responseText;
    }
  };
  xhttp.open("GET", purexml_SERG + page_nr, true);
  xhttp.send();
</script>

Fails due to CORS issue:

publications.html:1 Access to XMLHttpRequest at 'https://purexml.ewi.tudelft.nl/convert/tu/research-id/ai4fintech' from origin 'https://se.ewi.tudelft.nl' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Same code works for publications in serg.delft and blockchain lab. Probably need to set some permission somewhere for the different URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions