Skip to content

http and https deployment not picking up profiles (site broken) #18

@PhilReedData

Description

@PhilReedData

Related to issue #16, I cannot use this site at all on either http or https, the profile selection does not load. Tested on latest Chrome, Firefox, Edge, on macOS 14 and Windows 10. Also observed by several colleagues in ELIXIR for months.

When loading the http address:

  • The 'Select Profile' button does nothing. The list of profiles is empty. Edit: Incorrect, the profiles would load, I made a mistake in my observations, apologies.
  • ℹ️The console shows Initialise Bioschemas Generator then Website URL:... but initially no error messages.
  • After using the forms and generating markup...
  • 🛑The console shows error Access to XMLHttpRequest at 'http://rdf-translator.appspot.com/convert/json-ld/rdfa/content' from origin 'http://www.macs.hw.ac.uk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Failed to load resource: net::ERR_FAILED. Then similar error for http://rdf-translator.appspot.com/convert/json-ld/microdata/content.

When loading the https address with default security settings:

  • The 'Select Profile' button does nothing. The list of profiles is empty.
  • 🛑The console shows error Mixed Content: The page at... was loaded over HTTPS, but requested an insecure script '...jquery.min.js'. This request has been blocked; the content must be served over HTTPS.
  • 🛑The console shows subsequent errors because JQuery did not load.

When loading the https address with Chrome/Edge 'Site Settings' set to allow insecure content:

  • The 'Select Profile' button does nothing. The list of profiles is empty.
  • ⚠️The console shows warning Mixed Content: The page at... was loaded over HTTPS, but requested an insecure script '...jquery.min.js'. This content should also be served over HTTPS.
  • ℹ️The console shows Initialise Bioschemas Generator then Website URL:....
  • ⚠️The console shows warning Mixed Content: The page at... was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '.../BioschemasGenerator//profiles/'. This content should also be served over HTTPS.
  • 🛑The console shows error Access to XMLHttpRequest at '.../BioschemasGenerator//profiles/' from origin 'https://www.macs.hw.ac.uk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 🛑The console shows subsequent errors because the profiles did not load.

As already raised in issue #16, the script to load JQuery should be changed to load the https version, at least when the page is requested over https. In addition, something needs to be changed to address the CORS policy error. I don't know what CORS is, it might go away if the page loads everything over https.

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