Comments (4)
I guess we can remove host+domain validations for non-appbase url(s). What do you think @siddharthlatest @bietkul?
from appbase-js.
I am also facing this exact same issue when I turned on proxy in package.json. @metagrover @bietkul
@focusaurus were you able to resolve this somehow?
from appbase-js.
I had exact same issue when using proxy via package.json. This is a silly workaround but works for me, hopefully it'll help you guys out:
// reactive search won't allow relative url, so re-construct:
const port = window.location.port ? `:${window.location.port}` : '';
const url = `${window.location.protocol}//${window.location.hostname}${port}/api`;
return (
<SearchContent className={searchStyle}>
<ReactiveBase
app="datasets"
url={url}
headers={
{'x-csrf-token': getToken()}
}
>
from appbase-js.
What about the state of this?
Just ran into the same CORS problem which could only be solved via a vue server proxy configuration if SearchBase.url would accept a relative uri like "/endpoint".
from appbase-js.
Related Issues (20)
- Optimize build size
- WebSocket - Uncaught, unspecified 'error' event HOT 2
- Add custom headers support HOT 1
- Improve error handling
- Update README and docs
- delete method doesn't invokes on error for unauthorized calls HOT 1
- add docs for msearch HOT 1
- bulk index method invokes on data for status 400 HOT 1
- URLEncode all Ids in the requests
- Vue plug-in available? HOT 2
- Add include: credentials support HOT 1
- Some missing API docs and usage examples
- Publish the package pre-compiled HOT 3
- Improve promise rejection response
- Can't pass credentials via Authorization header HOT 5
- Quick start only works with elastic search 5 HOT 1
- Custom Type Value Ambiguous Error
- cross-fetch > node-fetch vulnerability
- Error: Authentication information is not present. Did you add credentials? HOT 3
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 appbase-js.