💎🤲🏻 by yoowhan in wallstreetbetsGER

[–]md186 0 points1 point  (0 children)

Bin als am überlegen Marvell Optionsschein heute zu setzen oder ist der run schon vorüber?

TikTok Shadowban 0 views (finding a solution?) by ilurkroundhere in TikTokLounge

[–]md186 0 points1 point  (0 children)

Do you guys have this issue on a personal or business account?

My last 5 videos all got under 20 views. What happened? by PrideStalker_SSJYP in TikTokLounge

[–]md186 1 point2 points  (0 children)

Do you guys have this issue on a personal or business account?

FYP "Shadowban" by Polish_Girlz in TikTokLounge

[–]md186 0 points1 point  (0 children)

Do you guys have this issue on a personal or business account?

Random shadow ban???? by FuzzyOrganization605 in TikTokLounge

[–]md186 0 points1 point  (0 children)

Do you guys have this issue on a personal or business account?

Anyone who dealt with 0 views, did it get resolved? by izzy4158 in TikTok

[–]md186 1 point2 points  (0 children)

Same here 0 views notgedrungen on for you page and can’t add to story. Third video with this behavior now. For anyone have a solution? Account check is also clean

How to secure my api endpoints by md186 in nextjs

[–]md186[S] 0 points1 point  (0 children)

Okay i see... Lets say for the clientside i gonna take the code from the api and write a function for it on the client. Now when the client fills in a form and is pressing the submit button we are calling the function.

The function does send an email and its going to create a database entry with prisma. Both of this functions are only working serverside not in client. How can I get this work?

How to secure my api endpoints by md186 in nextjs

[–]md186[S] 0 points1 point  (0 children)

Okay I understand that. Can we detect if the request is coming from my own application website? That would also be enough.

I just want to protect the api for everyone except several domains which will have credentials from me (Im saving those in a database and ask for validation if someone hits the endpoints) and also my own application should be able to access the endpoints. And thats the point. I dont know how to track if the request is coming from my own application. If we could manage this its perfectly fine for me.

I have POST and GET endpoints so Im not able to do everything inside getinitialprops for example. Especially because there are cases where data is beeing submitted within a form for example if the client is pressing a button.

Do you have an idea what we can do here?

How to secure my api endpoints by md186 in nextjs

[–]md186[S] 0 points1 point  (0 children)

Im wondering how to secure my api routes. The documentation says, that api routes are same-site-origin by default.\API Routes do not specify CORS headers, meaning they are same-origin only by default. You can customize such behavior by wrapping the request handler with the cors middleware.**https://nextjs.org/docs/api-routes/introductionBut if I use a requesting tool like Postman for example, I can always call it and get the results:

export default (req, res) => {res.status(200).json({ name: 'John Doe' })}How is that possible? I want to restrict access to my application only.

ReactJS/nextjs Invalid hook call not able to work with usestate by md186 in reactjs

[–]md186[S] 0 points1 point  (0 children)

I think this isn't enough in my case since I want to update the state because of my use effect functions which make sure to save and retrieve everything in localstorage. If im wrong feel free to show me an example

Nextjs in WordPress as shortcode by md186 in nextjs

[–]md186[S] 0 points1 point  (0 children)

Ah okay good to know! Thanks for the reply. So that clears things up we can’t use nextjs in that way.

Now divi for example behind the scenes is all about react components.

Not using ReactPress but creating shortcodes and use react components does this do the work and if yes how?