Question about accessing the manifest.json file #299
-
|
Hello everyone, I have been working on trying to use LearnCard with our site. We have recently switched to using the Remix framework for our site and I am having a bit of an issue with LearnCard being unable to access the manifest.json file I added to my project due to a CORS error. I am relatively new to using Remix so I have been looking for a solution to allow LearnCard to access that file. I appreciate any help or input that anybody can provide. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hey @CGurg - great to hear you are integrating LearnCard! Are you able to post additional information about the error - which endpoints are you receiving CORS errors from? Are you attempting to setup a CHAPI manifest file? Cheers, |
Beta Was this translation helpful? Give feedback.
Hi @CGurg. I'm not familiar with Remix framework unfortunately. But in Javascript, you're essentially looking to enable CORS headers on the route where you're hosting your static
manifest.jsonfile. I suspect you can use something like https://www.npmjs.com/package/cors (adding thecors()handler to the route) with Remix.