<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[proxyUrl setting]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I am now trying to include openjscad interface on our website.<br />
The modeling scripts are ready, and works well, but I am not able to mount the script file directly on the page like</p>
<p dir="auto"><a href="https://YOURSITE/?uri=http://www.thingiverse.com/download:164128" rel="nofollow ugc">https://YOURSITE/?uri=http://www.thingiverse.com/download:164128</a></p>
<p dir="auto">or</p>
<p dir="auto"><a href="https://YOURSITE/#http://www.thingiverse.com/download:164128" rel="nofollow ugc">https://YOURSITE/#http://www.thingiverse.com/download:164128</a></p>
<p dir="auto">the readme in the github says that</p>
<p dir="auto">use and path of the proxy can be set by:<br />
• changing the proxyUrl value in src/ui/index.js<br />
• since this is hardcoded , if you do not use the provided dev server, rebuild your main file (See Contributing)</p>
<p dir="auto">but there is no file such as src/ui/index.js<br />
by default installation.</p>
<p dir="auto">Is there something wrong with my installation?</p>
<p dir="auto">or any suggestion to set the proxyUrl, and so on<br />
I would like to know the needed process to enable the remote file loading.</p>
<p dir="auto">I am working on:<br />
<a href="https://fablab-shinagawa.org/jscad/packages/web/index.html" rel="nofollow ugc">https://fablab-shinagawa.org/jscad/packages/web/index.html</a></p>
<p dir="auto">one of the modeling script is:<br />
<a href="https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js" rel="nofollow ugc">https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js</a></p>
<p dir="auto">Thank you</p>
]]></description><link>https://openjscad.nodebb.com/topic/309/proxyurl-setting</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 18:50:34 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/309.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Oct 2021 01:42:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to proxyUrl setting on Sat, 16 Oct 2021 06:55:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/z3dev" aria-label="Profile: z3dev">@<bdi>z3dev</bdi></a><br />
I am using a rental server of general settings, nothing special, I think.<br />
I did no configuration of the web server.<br />
I did not changed anything on setting when installing the web site.</p>
<p dir="auto">Thanks to all of you related,<br />
I have uploaded the page.<br />
<a href="https://www.fablab-shinagawa.org/archive/index.html" rel="nofollow ugc">https://www.fablab-shinagawa.org/archive/index.html</a><br />
when you click "パラメトリック" - which means "parametric"- tab,<br />
you would see the list of our parametric designs, and again when you click a design,<br />
you would link to the page includes openjscad model.</p>
]]></description><link>https://openjscad.nodebb.com/post/992</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/992</guid><dc:creator><![CDATA[hamade]]></dc:creator><pubDate>Sat, 16 Oct 2021 06:55:44 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Thu, 14 Oct 2021 06:21:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hamade" aria-label="Profile: hamade">@<bdi>hamade</bdi></a> Can you provide some feedback on the installation?</p>
<p dir="auto">What webserver are you using?</p>
<p dir="auto">Did you make any special changes to the configuration of the webserver?</p>
<p dir="auto">Did you have any issues installing the web site? Make any changes?</p>
]]></description><link>https://openjscad.nodebb.com/post/984</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/984</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Thu, 14 Oct 2021 06:21:46 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Thu, 14 Oct 2021 02:23:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hrgdavor" aria-label="Profile: hrgdavor">@<bdi>hrgdavor</bdi></a><br />
Thank you for your reply.<br />
I have got what we want.<br />
What a beginner, the problem was the suffix of "<a href="http://remote.pl" rel="nofollow ugc">remote.pl</a>".<br />
When I changed to .cgi, it works.</p>
<p dir="auto">Thank you for your support.</p>
]]></description><link>https://openjscad.nodebb.com/post/981</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/981</guid><dc:creator><![CDATA[hamade]]></dc:creator><pubDate>Thu, 14 Oct 2021 02:23:44 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Tue, 12 Oct 2021 12:14:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hamade" aria-label="Profile: hamade">@<bdi>hamade</bdi></a> the error is exactly right <img src="https://openjscad.nodebb.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=4619dfc2edd" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">you have given an url that is not a script, it fails on syntax parsing.</p>
<p dir="auto">and if you take a look into network tab you will see why <img src="https://openjscad.nodebb.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=4619dfc2edd" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">you need to fix your proxy script and web server config so it returns js file that you expect instead of perl source of your proxy script.</p>
]]></description><link>https://openjscad.nodebb.com/post/978</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/978</guid><dc:creator><![CDATA[hrgdavor]]></dc:creator><pubDate>Tue, 12 Oct 2021 12:14:32 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Tue, 12 Oct 2021 11:17:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hrgdavor" aria-label="Profile: hrgdavor">@<bdi>hrgdavor</bdi></a><br />
Thank you for your reply.<br />
I suppose there is no error showed in console.</p>
<p dir="auto"><img src="/assets/uploads/files/1634037236942-%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2021-10-12-20.12.16.png" alt="スクリーンショット 2021-10-12 20.12.16.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The console says that :<br />
DevTools failed to load source map: Could not parse content for <a href="https://www.fablab-shinagawa.org/jscad/packages/web/drawer.css.map:" rel="nofollow ugc">https://www.fablab-shinagawa.org/jscad/packages/web/drawer.css.map:</a> Unexpected token &lt; in JSON at position 0</p>
<p dir="auto"><img src="/assets/uploads/files/1634037390819-%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2021-10-12-20.15.55.png" alt="スクリーンショット 2021-10-12 20.15.55.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/977</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/977</guid><dc:creator><![CDATA[hamade]]></dc:creator><pubDate>Tue, 12 Oct 2021 11:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Tue, 12 Oct 2021 10:27:53 GMT]]></title><description><![CDATA[<p dir="auto">please check browser network tab(it can be seen there why you get syntax error):</p>
<p dir="auto">also in network tab you can see the url that is called and if you open it in a diffferent tab:<br />
<a href="https://www.fablab-shinagawa.org/jscad/packages/web/remote.pl?url=https://fablab-shinagawa.org/jscad/designs/canHolder.js" rel="nofollow ugc">https://www.fablab-shinagawa.org/jscad/packages/web/remote.pl?url=https://fablab-shinagawa.org/jscad/designs/canHolder.js</a></p>
<p dir="auto">it looks like your perl script is not executed. You need to cofigure web server to run it instead treating as static asset <img src="https://openjscad.nodebb.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=4619dfc2edd" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://openjscad.nodebb.com/post/974</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/974</guid><dc:creator><![CDATA[hrgdavor]]></dc:creator><pubDate>Tue, 12 Oct 2021 10:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Tue, 12 Oct 2021 07:22:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hrgdavor" aria-label="Profile: hrgdavor">@<bdi>hrgdavor</bdi></a><br />
Thank you for your reply.<br />
I think, it might be caused not by CORS matter.<br />
Because when I am accessing from the same server, there still shows error message like this (Accessed URL: <a href="https://www.fablab-shinagawa.org/jscad/packages/web/index.html#https://fablab-shinagawa.org/jscad/designs/canHolder.js" rel="nofollow ugc">https://www.fablab-shinagawa.org/jscad/packages/web/index.html#https://fablab-shinagawa.org/jscad/designs/canHolder.js</a>) :</p>
<p dir="auto">ERROR:<br />
Unexpected token # in JSON at position 0<br />
Stack: SyntaxError: Unexpected token # in JSON at position 0</p>
]]></description><link>https://openjscad.nodebb.com/post/973</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/973</guid><dc:creator><![CDATA[hamade]]></dc:creator><pubDate>Tue, 12 Oct 2021 07:22:38 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Tue, 12 Oct 2021 07:11:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/z3dev" aria-label="Profile: z3dev">@<bdi>z3dev</bdi></a><br />
Thank you for your reply.<br />
My rental server supports PERL.<br />
I placed "<a href="http://remote.pl" rel="nofollow ugc">remote.pl</a>" file, and made "cache" folder in the same directory of "index.html". What is the permission setting of "cache" folder ?</p>
<p dir="auto">The URL you showed as not accessible, has to be :<br />
<a href="https://www.fablab-shinagawa.org/jscad/designs/petbottleOpener.js" rel="nofollow ugc">https://www.fablab-shinagawa.org/jscad/designs/petbottleOpener.js</a><br />
Modeling scripts has no problem.<br />
Please check this link :<br />
<a href="https://openjscad.xyz/#https://www.fablab-shinagawa.org/jscad/designs/petbottleOpener.js" rel="nofollow ugc">https://openjscad.xyz/#https://www.fablab-shinagawa.org/jscad/designs/petbottleOpener.js</a></p>
<p dir="auto">And I always have following error, when I put the link like :<br />
<a href="https://www.fablab-shinagawa.org/jscad/packages/web/index.html#https://www.fablab-shinagawa.org/jscad/designs/petbottleOpener.js" rel="nofollow ugc">https://www.fablab-shinagawa.org/jscad/packages/web/index.html#https://www.fablab-shinagawa.org/jscad/designs/petbottleOpener.js</a></p>
<p dir="auto">ERROR:<br />
Unexpected token # in JSON at position 0<br />
Stack: SyntaxError: Unexpected token # in JSON at position 0</p>
]]></description><link>https://openjscad.nodebb.com/post/972</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/972</guid><dc:creator><![CDATA[hamade]]></dc:creator><pubDate>Tue, 12 Oct 2021 07:11:54 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Tue, 12 Oct 2021 04:33:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hamade" aria-label="Profile: hamade">@<bdi>hamade</bdi></a> Those designs are not accessible.</p>
<p dir="auto"><a href="https://www.fablab-shinagawa.org/designs/petbottleOpener.js" rel="nofollow ugc">https://www.fablab-shinagawa.org/designs/petbottleOpener.js</a></p>
<p dir="auto">That URL needs to work, i.e. the file should download and show in the browser.</p>
<p dir="auto">So, the webserver configuration is incorrect.</p>
<p dir="auto">Here's an example...</p>
<p dir="auto"><a href="https://openjscad.xyz/examples/core/colors/colorCube.js" rel="nofollow ugc">https://openjscad.xyz/examples/core/colors/colorCube.js</a></p>
]]></description><link>https://openjscad.nodebb.com/post/969</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/969</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Tue, 12 Oct 2021 04:33:51 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Tue, 12 Oct 2021 04:25:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hamade" aria-label="Profile: hamade">@<bdi>hamade</bdi></a> OK. Here's where to start...</p>
<p dir="auto">The webserver must support PERL, as there's a PERL script that runs on the webserver. (I can assist if you are using Apache)</p>
<p dir="auto">After configuring and testing the webserver, copy '<a href="http://remote.pl" rel="nofollow ugc">remote.pl</a>' to the webserver, and move into the base directory of the jscad website.</p>
<p dir="auto">We use...</p>
<p dir="auto">/var/www/openjscad.xyz/public_html/remote.pl</p>
<p dir="auto">In addition, a new directory needs to be created called 'cache'. The PERL script downloads files and puts the file into this directory.</p>
]]></description><link>https://openjscad.nodebb.com/post/968</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/968</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Tue, 12 Oct 2021 04:25:27 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Sun, 10 Oct 2021 08:18:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hamade" aria-label="Profile: hamade">@<bdi>hamade</bdi></a> if you setup proper "Access-Control-Allow-Origin" header on your server when downloading <a href="https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js" rel="nofollow ugc">https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js</a> you would be able to do it without proxy by direct fetch from js</p>
<p dir="auto">this url would work then for my proto that has no proxy<br />
<a href="https://3d.hrg.hr/jscad/three/threejscad2.html?uri=https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js" rel="nofollow ugc">https://3d.hrg.hr/jscad/three/threejscad2.html?uri=https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js</a></p>
<p dir="auto">for exampe if I put your script to gihtub as a gist it works<br />
<a href="https://3d.hrg.hr/jscad/three/threejscad2.html?uri=https://gist.githubusercontent.com/hrgdavor/08e61d2014ed7b62078fa9106380f634/raw/815d639e16bfa4e88e65e2e50b6772bc17cab35a/fruit.js" rel="nofollow ugc">https://3d.hrg.hr/jscad/three/threejscad2.html?uri=https://gist.githubusercontent.com/hrgdavor/08e61d2014ed7b62078fa9106380f634/raw/815d639e16bfa4e88e65e2e50b6772bc17cab35a/fruit.js</a></p>
]]></description><link>https://openjscad.nodebb.com/post/956</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/956</guid><dc:creator><![CDATA[hrgdavor]]></dc:creator><pubDate>Sun, 10 Oct 2021 08:18:15 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Sun, 10 Oct 2021 06:17:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/z3dev" aria-label="Profile: z3dev">@<bdi>z3dev</bdi></a><br />
Thank you for your reply.<br />
Actually, I do not need a 100% copy of the JSCAD website.<br />
Just want to include JSCAD interface to existing website.<br />
Instead of former question, I have been working on following URL, just with the necessary script :<br />
<a href="https://fablab-shinagawa.org/jscad/" rel="nofollow ugc">https://fablab-shinagawa.org/jscad/</a></p>
<p dir="auto">In this page, I edited the script temporary so that we are able to manipulate our modeling sources via help menu.</p>
<p dir="auto">Anyway, I would like to know the process to activate using those URLs such as :<br />
<a href="https://fablab-shinagawa.org/jscad/index.html#https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js" rel="nofollow ugc">https://fablab-shinagawa.org/jscad/index.html#https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js</a><br />
without errors.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://openjscad.nodebb.com/post/955</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/955</guid><dc:creator><![CDATA[hamade]]></dc:creator><pubDate>Sun, 10 Oct 2021 06:17:51 GMT</pubDate></item><item><title><![CDATA[Reply to proxyUrl setting on Sat, 09 Oct 2021 01:56:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hamade" aria-label="Profile: hamade">@<bdi>hamade</bdi></a> welcome</p>
<p dir="auto">FYI, you are the first person trying this, i.e. installing the full website.</p>
<p dir="auto">This is going to take some extra steps because there's some setup for the website, as well as special files for making the website function properly.</p>
<p dir="auto">Are you sure that a 100% copy of the JSCAD website is necessary?</p>
]]></description><link>https://openjscad.nodebb.com/post/948</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/948</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Sat, 09 Oct 2021 01:56:58 GMT</pubDate></item></channel></rss>