Comments (7)
i got it,now i am just handling the CORS problem
from excalidraw-libraries.
i got it,now i am just handling the CORS problem
Did you succeed? if you are succeed. please tell me how it work? thanks
from excalidraw-libraries.
i got it,now i am just handling the CORS problem
Did you succeed? if you are succeed. please tell me how it work? thanks
git clone https://github.com/excalidraw/excalidraw.git
cd excalidraw/
yarn
yarn start
if you dont have yarn,run "npm install -g yarn" first
from excalidraw-libraries.
git clone https://github.com/excalidraw/excalidraw.git cd excalidraw/ yarn yarn start
if you dont have yarn,run "npm install -g yarn" first
yes. install excalidraw is very easy.
in my server. I install excalidraw. i also down the excalidraw libraries project. copy to my nginx or apache root directory.it works.
But in my local excalidraw libraries website, click "Add To Excalidraw" button. Dont work.
Have you encountered this situation?
If I use my local excalidraw + official excalidraw libraries website, click "Add to excalidraw" button is work.
from excalidraw-libraries.
git clone https://github.com/excalidraw/excalidraw.git cd excalidraw/ yarn yarn start
if you dont have yarn,run "npm install -g yarn" first
yes. install excalidraw is very easy. in my server. I install excalidraw. i also down the excalidraw libraries project. copy to my nginx or apache root directory.it works. But in my local excalidraw libraries website, click "Add To Excalidraw" button. Dont work. Have you encountered this situation? If I use my local excalidraw + official excalidraw libraries website, click "Add to excalidraw" button is work.
that is just what i said "CORS" problem,you just need to add two lines in your nginx conf :
in the libraries's conf:
add_header Access-Control-Allow-Origin http://excalidraw.mydomain.com;
add_header Access-Control-Allow-Method POST,GET;
in the excalidraw's conf :
add_header Access-Control-Allow-Origin http://excalidraw-libraries.mydomain.com;
add_header Access-Control-Allow-Method POST,GET;
here is my excalidraw.conf,mybe it's not perfect,but it does work:
server {
listen 80;
server_name excalidraw.mydomain.com
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:3000;
add_header Access-Control-Allow-Origin http://excalidraw-libraries.mydomain.com;
add_header Access-Control-Allow-Method POST,GET;
}
}
from excalidraw-libraries.
git clone https://github.com/excalidraw/excalidraw.git cd excalidraw/ yarn yarn start
if you dont have yarn,run "npm install -g yarn" first
yes. install excalidraw is very easy. in my server. I install excalidraw. i also down the excalidraw libraries project. copy to my nginx or apache root directory.it works. But in my local excalidraw libraries website, click "Add To Excalidraw" button. Dont work. Have you encountered this situation? If I use my local excalidraw + official excalidraw libraries website, click "Add to excalidraw" button is work.
that is just what i said "CORS" problem,you just need to add two lines in your nginx conf : in the libraries's conf:
add_header Access-Control-Allow-Origin http://excalidraw.mydomain.com; add_header Access-Control-Allow-Method POST,GET;
in the excalidraw's conf :
add_header Access-Control-Allow-Origin http://excalidraw-libraries.mydomain.com; add_header Access-Control-Allow-Method POST,GET;
here is my excalidraw.conf,mybe it's not perfect,but it does work:
server { listen 80; server_name excalidraw.,ydomain.com location / { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:3000; add_header Access-Control-Allow-Origin http://excalidraw-libraries.ydomain.com; add_header Access-Control-Allow-Method POST,GET; } }
thanks, I try it.
from excalidraw-libraries.
git clone https://github.com/excalidraw/excalidraw.git cd excalidraw/ yarn yarn start
if you dont have yarn,run "npm install -g yarn" first
yes. install excalidraw is very easy. in my server. I install excalidraw. i also down the excalidraw libraries project. copy to my nginx or apache root directory.it works. But in my local excalidraw libraries website, click "Add To Excalidraw" button. Dont work. Have you encountered this situation? If I use my local excalidraw + official excalidraw libraries website, click "Add to excalidraw" button is work.
that is just what i said "CORS" problem,you just need to add two lines in your nginx conf : in the libraries's conf:
add_header Access-Control-Allow-Origin http://excalidraw.mydomain.com; add_header Access-Control-Allow-Method POST,GET;
in the excalidraw's conf :
add_header Access-Control-Allow-Origin http://excalidraw-libraries.mydomain.com; add_header Access-Control-Allow-Method POST,GET;
here is my excalidraw.conf,mybe it's not perfect,but it does work:
server { listen 80; server_name excalidraw.mydomain.com location / { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:3000; add_header Access-Control-Allow-Origin http://excalidraw-libraries.mydomain.com; add_header Access-Control-Allow-Method POST,GET; } }
thanks, the problem is "CORS", I edit nginx.conf, add some code. It works. thanks very much!
from excalidraw-libraries.
Related Issues (20)
- Search Bar Clipping "g" and "j" Characters HOT 4
- Can't find Frame Tool and instructions on how to integrate it
- Feature Request: Search bar for library in drawing interface
- Library improvements.. or redesign
- Problems publishing the library. #894
- Excalidraw Data Platform Library - ClickHouse & Polars Icons
- Question: How to generate libraries from sets SVG
- Changing colors of SVG
- Update author information about existing library
- Bug when resizing grouped shapes HOT 1
- Add support for adding images to a library HOT 3
- How to update a submitted library? HOT 6
- BUG: NO MULTIPLE LIBRARIES ARE ALLOWED. HOT 1
- Can these icons be made into a library? HOT 1
- Bug: Saving as image ignores horizontal flips for PNG objects
- How to upload custom lib with the extension .excalidrawlib HOT 1
- How can I contribute HOT 1
- Process modelling duplicate libraries HOT 3
- Create a dockerfile and host it to github containers registry or docker hub HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excalidraw-libraries.