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

Enable Pure Converter #2

Open
avandeursen opened this issue Mar 1, 2020 · 0 comments
Open

Enable Pure Converter #2

avandeursen opened this issue Mar 1, 2020 · 0 comments

Comments

@avandeursen
Copy link
Member

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.

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

No branches or pull requests

1 participant