Testing server doesn't serve '.mjs' files with the correct MIME type

  • Hi Klaus,

    our projects include the PDF.js library to reliably display PDF files, which works fine in most default webserver configurations. However, it doesn't work when using the krpano testing server, which is sometimes used by our customers to view a project without the need for a internet connection. The problem is caused by '.mjs' files included in PDF.js, which need to be served as 'text/javascript'.

    Would it be possible for you to add the correct MIME type to the testing server?

    Kind regards
    Christian

  • Hi Klaus,

    I just checked, if it is save now to remove my workaround. However, I noticed, that '.mjs' files are still served as 'text/plain' when using the krpano testing server according to the browsers developer tools. And indeed, PDF.js doesn't work correctly.

    Can you please check this once again?

    Thank you and kind regards
    Christian

  • Hi Klaus,

    my apologies. You're right, it does work correctly. Somehow, I managed to test this with an older version of the krpano testing server and didn't double check. Sorry for the inconvenience and thank you for the fix!

    Kind regards
    Christian

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!