-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS #54
Comments
This examples are meant to show how you can setup Templater via http. I think whenever I made something more elaborate, it just confused some people wanting to learn how to use Templater. |
As for this web-interface problem... can you be a bit more specific? |
I build and run docker container with the Dockerfile (from the above message):
When I open the page http://localhost:8000/ the server generates following log:
When I try to switch from the first template (BeerList.docx) to the second (Benchmark.xlsx) by pushing the second button in the Templates list, the server generates following log:
and the text in the text field "Put your JSON here" remains the same from the first template (BeerList):
The only change on the page is new text on two green buttons "Create... Benchmark.xlsx"/ "Download Benchmark.xlsx". |
When I try this without Docker it works as expected for me. Does it work as expected for you when you do
I can look into your Docker problem, but this is not really related to Templater or this example as it works without Docker just fine |
The TemplateServer doesn't support CORS. I added following lines in Startup.cs
It works well on Windows, but it dosn't works as expected in Docker container.
Then I tried to run modified TemplateServer in Docker container with the following Dockerfile:
It runs successfully, but CORS doesn't work. Also there is issues in the interface of the web-page. It doesn't switch between json examples and doesn't process the templates.
What might be the reason of that?
Is the way to add CORS support in java version of the TemplateServer?
The text was updated successfully, but these errors were encountered: