POST To SharePoint List Forbidden ERROR 403

I am having an issue trying to post HTML form data to a SharePoint list via AJAX POST, and I will share my JS with you, but this is what I get on my HTML page:

jquery-3.3.1.min.js:2 POST'Uncleared')/items 403 (FORBIDDEN)

Then on a normal SharePoint page, I put just the modal and JS, and the error I get then is:

"Bad Request"

Here is my JS:

function openModal() {
  $(function () {
      $("#btnSubmit").click(function () {

    function InsertListItem() {
    var item = {
      "__metadata": { "type": "SP.Data.UnclearedListItem" },
      "Title": "No Title",
      "Question1": $("#Question1").val(),
      "Question2": $("#Question2").val(),
      "Question3": $("#Question3").val(),
      "Question4": $("#Question4").val(),
      "Question5": $("#Question5").val(),
      "Question6": $("#Question6").val(),
      "Question7": $("#Question7").val(),
      "Question8": $("#Question8").val(),
      "Question9": $("#Question9").val()
          url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('Uncleared')/items",
          type: "POST",
          credentials: 'include',
          data: JSON.stringify(item),
          headers: {
              Accept: "application/json;odata=verbose",
              "Content-Type": "application/json;odata=verbose",
              "X-RequestDigest": $("#__REQUESTDIGEST").val(),
              "X-HTTP-Method": "POST",
          success: function (data, status, xhr) {
              alert("New Form Item Created Successfully");
          error: function (xhr, status, error) {

legal – Why are tripods forbidden in some public spaces and how to deal with it?

Yesterday, I’ve been to the Britomart train station in Auckland, New Zealand, to take some pictures of that place. To do so, I carried my tripod with me.
Aware of the fact, that some places don’t like tripods I double checked their really huge sign of things that are forbidden in that place (busking, smoking, running etc.), using tripods was not among these things, so I thought I was fine.

Well, that was a misconception after I got told by a security guard that tripods are forbidden at the train station. Since it makes no sense to discuss with these people, I tucked it away.

I know, legal questions are totally country related, but in general I always wonder why such facilities are so apprehensive towards tripods. Anyone has an idea?
After that incident I put my camera on the ground with some books and other pieces to get an appropriate angle for my shot and the sec guy was totally fine with that.

Furthermore how do you deal with it? Do you try and get something like a official permission of the owner to use it? Is that even worth the hassle? How do you deal with restrictions in (Semi-)public spaces? Especially when you think that they are wrong and you should have the right to use it in a certain place?

This question is not so much headed to get a answer in the sense of law, rather than how to deal with it while out there in the wild.

Two files, same permissions, Apache says one is forbidden

I have two files in a directory that is accessible to the Interent. It’s part of a WordPress installation. Here are the directory contents:

# ls -lah
total 11M
-rw-r--r--. 1 apache apache 2.9M Jul  6 01:49 June_16.pdf
-rw-r--r--. 1 apache apache 2.6M Jul  5 14:17 June_23.pdf
-rw-r--r--. 1 apache apache 2.4M Jul  5 14:17 June_30.pdf
... few other files...

They all have the same permissions. Except I can view / download two of the files, but cannot view / download the one of them. For the one I cannot view / download, Apache gives a 403 forbidden failure. It happens for this pdf file no matter what directory I put it in.

On my local machine (MacOs), I can view the file and it’s a valid pdf.
I also cannot upload this PDF file via the WordPress Media Upload page.

What could be going on here?

Just FYI here are links to the files:

performance – Some files result in ‘403 forbidden’ even with correct permissions

I have a sudden error in which css and other files are not loaded into the website. Server responds with a 403 forbidden error when I try to access them. I have given read permissions to apache for all files and folders . However, selective css style files and other files are not accessible in the website.

Does anyone have any suggestions? It would be a big help. Thank you!

I am using Drupal 7

What is causing error “403 FORBIDDEN (Access not allowed even with authorization)” for new domain on Domino server?

With Domino 9 server, a new Virtual Hostname doc has been added to the Domino Directory for domain It is configured with default values, and there are several other web sites hosted on the server with the same configuration. SSL is running on one of the domains, but all the rest are HTTP.

However, the site is not accessible via the browser giving the error message:

403 FORBIDDEN (Access not allowed even with authorization)

The only difference between this site and the others is that it has an .app high level domain name, and it was added to the Directory after the SSL key had been installed for a different domain name.

What may be causing forbidden access even with authorization?

sharepoint online – Unable to open modern team site with SP designer, error “403 FORBIDDEN403 FORBIDDEN403 FORBIDDEN403 FORBIDDEN403 FORBIDDEN”

I faced exactly this issue. No guarantee that this will fix your problem but it worked for me.
Kudos goes to an MS tech who dug this up.

The problem lays with what sounds like a completely unrelated setting allowing custom scripts.

The fix involves a bit of work in PowerShell

First make sure that you have the Sharepoint Online Management Shell. You can get it here

Connect to your SP site. There are full instructions here but all you need to know is:

$adminUPN="<the full email address of a SharePoint administrator account, example:>"
$orgName="<name of your Office 365 organization, example: contosotoycompany>"
$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
Connect-SPOService -Url https://$ -Credential $userCredential

Provided that all works then use the command:

set-SPOsite "https://<ORGNAME><SITENAME>" -DenyAddAndCustomizePages 0

That’s all that it needed in my case. SharePoint Designer then worked perfectly

forbidden lands – As a GM, how could I interpret Wits damage caused by pushed rolls?

I’ll give a short explanation for those non-familiar with Forbidden Lands.

There are no hit points as such, damage goes to attribute points.

Simplifying a bit, when you fail a roll you can “push the roll”, which
means you can reroll some dice but any 1 will cause you damage to the
related attribute (it’s a dice pool system).

Attributes are Strength, Agility, Wits and Empathy. Physical combat
damage goes to Strength.

Damage to Strength and Agility is usually easy to explain. E.g. if you fail a dodge throw, push it and get damage to Agility, maybe your leg got cramped.

I think I can manage charisma but haven’t had the need yet. People get sick of putting a nice face to negotiate with others. Maybe someone said something that hurt you. Looks relatively easy, depending on the situation.

I do not know how to explain Wits damage in most cases, though. I used “You try so hard to remember that your head starts hurting” after three damage in a single Lore roll (that’s a lot). It was good for comic relief but it would get old quick.

The books seem to associate Wits damage with fear, which does not help much.

How can I realistically explain damage caused to wits when pushing the roll?

graphs – Algorithm to not pass through forbidden edges in a complete hamiltonian digraph

I have a complete directed graph with ${n}$ nodes and ${n(n-1)}$ edges. A completed digraph can contain ${(n-1)!}$ hamiltonian cycles. The problem states that there is a particular hamiltonian cycle (A forbidden hamiltonian cycle) wherein the edges are “forbidden”. More specifically, there are ${n}$ forbidden edges and ${n(n − 2)}$ edges that are not forbidden.

What kind of randomized algorithm can I devise that goes through only ${n-1}$ non-forbidden edges? If the algorithm goes through a forbidden edge, the program must terminate.

Here is an algorithm that I referenced from How to not find a Hamiltonian Cycle:

Choose an arbitrary vertex and mark it as vertex 1
Choose an arbitrary unmarked neighbor of vertex 1, move to it, and mark it as vertex 2
Repeat step (2) while the current iteration i < n and vertex i has unmarked neighbors
If vertex n is adjacent to vertex 1, move to vertex 1 and terminate

Can this algorithm be applied to my case? If not, what changes should I make?

Some of the similar questions are:

Magento 2.4.2 – Forbidden error on Nginx because of no index file in root directory

I am getting a 403 forbidden error while opening my website URL on the browser. After so much research I’ve found that the index file is missing from the Magento root directory and it is moved to the pub directory. Can anyone tell me how to solve this error? how can I forward the index request to the pub directory?

segregated witness – Are high-s ECDSA signatures forbidden in segwit witnesses?

I must have looked that up five times by now, but did segwit actually forbid high-s ECDSA signatures in witnesses, esp. in standard single-sig constructions such as P2SH-P2WPKH or P2WPKH? Or are high-s signatures still only non-standard even in segwit inputs?

(I’m aware that the transaction malleability problem due to low-s/high-s is mitigated by moving the signature into the witness, that’s not my question.)