LoanR / typetime

⌨️ Vue.js typing game.
https://loanr.github.io/typetime/
6 stars 2 forks source link

Ajax call CORS error #31

Open LoanR opened 6 years ago

LoanR commented 6 years ago

Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://api.datamuse.com/words?ml=vache. Raison : l’en-tête CORS « Access-Control-Allow-Origin » ne correspond pas à « http://localhost:8080 ».

Seems 8080 is somewhere on prod...

Will require many tests and deployments...

LoanR commented 6 years ago

Apparently, this bug only appears on Firefox developer edition. No problems for other browsers.

Waiting for more info...

LoanR commented 6 years ago

Firefox developer edition request is set with Header Access-Control-Allow-Origin | http://localhost:8080

Dunno why...

LoanR commented 6 years ago

Ok, just a cookie problem. Resolved just by discarding 🍪 .

LoanR commented 6 years ago

Need webpack tweaks to be able to use app both online and locally.