Comments (6)
I add some aditional information
from full-stack-react-projects-second-edition.
I fixed it by removing the "helmet" npm package. I don't understand why, but now this works fine. Anyone can explain to me what happened?.
edit: This solution only work with firefox, but the problem still continue in google chrome :(
from full-stack-react-projects-second-edition.
Thanks for the solution @HashOil1.
from full-stack-react-projects-second-edition.
i got it working with helmet by setting it up like this:
app.use(
helmet({
contentSecurityPolicy: {
directives: {
...helmet.contentSecurityPolicy.getDefaultDirectives(),
'script-src': ["'self'", "'unsafe-inline'", "'unsafe-eval'"],
},
},
})
);
from full-stack-react-projects-second-edition.
i got it working with helmet by setting it up like this:
app.use( helmet({ contentSecurityPolicy: { directives: { ...helmet.contentSecurityPolicy.getDefaultDirectives(), 'script-src': ["'self'", "'unsafe-inline'", "'unsafe-eval'"], }, }, }) );
Thank you very much!, you helped me a lot with your answer.
from full-stack-react-projects-second-edition.
i got it working with helmet by setting it up like this:
app.use( helmet({ contentSecurityPolicy: { directives: { ...helmet.contentSecurityPolicy.getDefaultDirectives(), 'script-src': ["'self'", "'unsafe-inline'", "'unsafe-eval'"], }, }, }) );
Thanks for your solution, it was very helpful
from full-stack-react-projects-second-edition.
Related Issues (20)
- I still see the MERN Scheleton title, even though I have entered all the code from chapter 5, instead of MERN Social title HOT 1
- How can i test callback oauth from stripe using https protocol in development HOT 1
- Unable to run the client and the server (Chapter 8)
- SOLVED_____________chapter 7 - {"error":"Error: Material-UI: capitalize(string) expects a string argument."} HOT 2
- Hi How to add favicon to mern-skeleton?
- Build Successful no errors but no output Chapter 3 and 4 mern-skeleton HOT 4
- How to Deploy
- Private Route
- supported options connect mongoose
- Issue in the server.js file mongoose.connect code HOT 3
- How to deploy?
- Routing in client HOT 1
- chapter-03- express-jwt HOT 9
- Chapter 3 and Chapter 4 Mern skeleton user.model.js need set email field with unique: true?
- Unable to Run Chap3 Skeleton HOT 1
- Webpack Eval() error HOT 2
- Cannot edit profile in MERN Classroom Ch 6
- Cant Create user in Chapter 3 and 4 HOT 1
- After using server-side rendering, I always got warning in console
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 full-stack-react-projects-second-edition.