#Harsha-CSP

1 messages · Page 1 of 1 (latest)

fervent hedge
#

Hi there, did you enable any CSP in your webpage?

spiral copper
#

idk

#

may be not

#

i have just downloaded the code and running in locahost

fervent hedge
#

can you take a screen shot of your console?

spiral copper
fervent hedge
#

And where did you copy the code from? can you send me the link so that I can try to reproduce the issue?

spiral copper
#

this is the link from where i copied it

fervent hedge
#

I use the same code and I don't see this error, what Firefox version do you use?

#

How do you serve the page? did you use npm start ?

spiral copper
#

nope

#

i just run page checkout.html

fervent hedge
#

And where did you put the html file into? is it under your local server directory?

spiral copper
fervent hedge
#

I see, so you are using xampp to serve the application

spiral copper
#

it is in php

fervent hedge
#

Your xampp might have some default CSP settings that could raise these errors.

spiral copper
#

how to resolve that

#

will it work in live server

fervent hedge
#

You'll need to check your server's CSP settings then.

spiral copper
#

how cann we do that

fervent hedge
#

I'm afraid that's beyond my expertise, what I can advise is to check your XAMPP settings on Content-Security-Policy.