ISAITB / shacl-validator

Web and command-line application for the validation of RDF data.
https://joinup.ec.europa.eu/collection/interoperability-test-bed-repository/solution/rdf-validator
European Union Public License 1.2
13 stars 1 forks source link

Using (minimal) UI in iframe using `POST` #7

Closed init-dcat-ap-de closed 11 months ago

init-dcat-ap-de commented 11 months ago

One of our users tries to use the minimal UI in an iframe, but the POST should not be triggered by the form on your page. Instead they try to POST their side and only use the validation result.

<form method="POST" enctype="multipart/form-data" 
        action="https://www.itb.ec.europa.eu/shacl/dcat-ap.de/uploadm" 
        target="output">
    <input style="display:none" type="text" name="uri" value="url-to-ckan-dataset">
    <input type="hidden" name="validationType" value="v20_de_spec_implr">
    <button type="submit">Prüfung starten ...</button>
</form>
<iframe name="output" style="width:100%; height:400px;" src='about:blank'></iframe>

It fails with the following error message: Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).

The user proposes to adjust the content security policy.

Could you look into this, if this is an acceptabe use case for you?

costas80 commented 11 months ago

Thanks for reporting this. Looking into the issue and will come back asap regarding a fix.

costas80 commented 11 months ago

Hi @init-dcat-ap-de , the issue is now fixed. Could you please confirm from your end that everything is working as expected?

For information this was not due to the newly introduced CSP but rather a regression specific to the case of the minimal UI when used in embedded mode.

init-dcat-ap-de commented 11 months ago

As far as I can see it, it is fixed. I will close it, when @ondics confirms it.

costas80 commented 11 months ago

I see in that your user has confirmed everything is ok and has closed the issue relating to this. I'll consider this issue closed as well.