#vzhidkov - CSP

1 messages · Page 1 of 1 (latest)

glacial mango
#

Apologies for missing this question for a bit. Which line of code is giving you that issue?

#

Apologies, I clearly skimmed that code far too quickly. Is that code from a guide of hourse?

agile stratus
#

and just added a get request

glacial mango
#

Ah thank you. Looking in to that...

agile stratus
#

thanks!

visual night
#

Hello! That code is failing because it violates the connect-src directive as outlined in the error message. Basically you can't make requests from your JavaScript running on localhost to that https://httpbin.org/get URL.

#

What exactly are you trying to do?

visual night
#

@agile stratus You still there?

agile stratus
#

so you're saying if i'll upload it - its gonna work, right?

#

the only issue is localhost

visual night
#

No, I'm not saying that.

#

I'm saying that's the issue right now. There may be a whole different issue if you try to run it from a different origin.