-
-
Notifications
You must be signed in to change notification settings - Fork 869
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 issues #145
Comments
Hi @techmexdev |
@mcnamee Mmmh, did you mean to tag @TeodorKolev? |
Sorry, yes @techmexdev - you must have come up as the first suggestion after the @! |
If I add this to web.dev.config.js it cannot run. Throw errors |
@mcnamee Can you show me some examples please? |
The following example works for me (with nothing else changed): As an example I put the following snippet in the fetch('https://mcnam.ee/api/medium.json')
.then(res => res.json())
.then(d => console.log(d))
.catch(e => console.log(e)); Loading in the browser (http://localhost:3001/recipes), the console outputs an object of articles. Note that in order to allow CORS, my server has something like (Apache .htaccess): Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT" |
Hello, I have cors issues, when I am trying to reach data from server. How can I handle it
Help us reproduce - tell us about your environment
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: