Comments (5)
Hello @dlbnco! I'm looking into this.
from bifrost.
That's only true as long as you're trying to access the API through outside of the expected entrypoints:
- via GET: https://api.psychonautwiki.org/?query=query{substances(query:"LSD"){addictionPotential}}
- via POST:
Content-type: application/json
&{"query":"query{substances(query:"LSD"){addictionPotential}}"}
sent as body of the request to https://api.psychonautwiki.org/.
from bifrost.
The respective access-control headers now accept wildcard requests. Let me know if this fixes your issue.
from bifrost.
@KenanSulayman yes it does! I can now fetch from the API.
I'm still getting this warning, though:
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.psychonautwiki.org/ with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
from bifrost.
@KenanSulayman
I realized that the warning just happens once loading Apollo's Dev Tools, so it must be something with the extension. Querying from the app itself won't return any warnings.
Thanks for sorting this out!
from bifrost.
Related Issues (20)
- Documentation for how to use the API via CURL, query variables HOT 1
- Use unique IDs and allow partial matches when querying for names HOT 4
- Substance.summary returns empty string HOT 4
- Substances should have a "other names" property. HOT 8
- Some substances are returning an object instead of float for SubstanceRoaDose.treshold HOT 1
- [Query.substances] When no specific query is provided, returns error: Cannot destructure property `type` of 'undefined' or 'null'. HOT 2
- Substance class strings have trailing hash character HOT 6
- Unable to query API for 2C-B effects HOT 3
- Query.substances errors when `limit` argument is too high HOT 7
- After migration from Hermes to aion and upgrade to MW 1.33.0 queries some substance queries fail HOT 1
- Module integration HOT 1
- Internal server error when querying 'shrooms', resulting in no units HOT 5
- API is returning 502 response suddenly. Unable to fetch any substance information. HOT 1
- Query for substances can include experiences HOT 2
- Query for all substances missing substances that are in the dataset HOT 3
- -
- query experiences
- Query Effects of Subjective Effect Index (SEI)
- Group/filter effects by type
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 bifrost.