-
Hi Johannes, I want to ask you, about one CORS issue, that I get, trying to expand your index.html file. I suggest adding a footer and header to the already existing index.html. It works but, I get the following issue:
In the header, the image carousel should work, but because of CORS issue, it doesn't work properly (https://crossasia.org/). I tried different ways:
If you have any ideas, please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Sorry, I don't completely understand the issue, can you give me some more details?
|
Beta Was this translation helpful? Give feedback.
-
Hi, Hier is my index.html
|
Beta Was this translation helpful? Give feedback.
-
Oh, you need to build the web app before you use the
This is not going to work, your Browser doesn't know what to do with TypeScript modules. Here's what you need to do:
But please be aware that the example application in Sorry for the lack of developer documentation, it's still on my To Do list. As for the actual CORS issue: The problem is that the endpoint at https://crossasia.org/?type=1001 does not set the CORS headers. Talk to the administrators there if you want to perform AJAX requests to that domain from another domain/subdomain. |
Beta Was this translation helpful? Give feedback.
Oh, you need to build the web app before you use the
index.html
!This is not going to work, your Browser doesn't know what to do with TypeScript modules.
Here's what you need to do:
pnpm
:npm install -g pnpm
pnpm install
pdiiif-lib
:cd pdiiif-lib && pnpm build && cd ..
pdiiif-web
:cd pdiiif-web && pnpm build
index.html
+ JavaScript + CSS that you can then use in your own app will be in thedist
subdirectory ofpdiiif-web
But please be aware that the example application in
pdiiif-web
is not really intended to be embedded into other sites, since its styles assume that it has the whol…